﻿using Capstone.ViewModels;
using System.Collections.Generic;
using System.ComponentModel;
using Xamarin.Forms;
using Capstone.Models;
using System;
using System.Diagnostics;
using System.Threading.Tasks;
using Capstone.Services;
using System.Runtime.CompilerServices;
using System.IO;
using System.Text;
using System.Reflection;
using System.Net.Http;
using Newtonsoft.Json;
using System.Configuration;
using Capstone.Properties;
using Xamarin.Essentials;

namespace Capstone.Views
{

    public partial class GutSymptomPage : ContentPage
    {
        private string itemId;
        private string text;
        private string description;
        public string Id { get; set; }

        private int length;
        private string frequency;
        private string[] symptoms;
        private string[] othersymptoms;
        private string[] sleepsymptoms;
        public string CurrentId;
        public string loadId;
        public Item CurrentItem;
        List<string> DiaryFrequency;
        public List<string> intensitylist = new List<string> { Properties.Resources.GutQuestionIntensity1, Properties.Resources.GutQuestionIntensity2, Properties.Resources.GutQuestionIntensity3, Properties.Resources.GutQuestionIntensity4 };


        public void Save_Settings(string save_key, string save_value, string day_id)
        {
            Preferences.Set(save_key, save_value, day_id);
        }

        public void ServerSend(object sender, EventArgs args)
        {
            Send();
        }

        public async void Send()
        {
                int customInt = 0;
                HttpClient client = new HttpClient();
                string data = "[{\"record_id\":\"" + CurrentId + "\", \"gut_symptom_diary_q1\":\"" + Preferences.Get("gut_symptom_diary_q1", "value", CurrentId) + "\"";
                if (Preferences.Get("gut_symptom_diary_q1", "value", CurrentId) != "0")
                {
                    if (FrequencyToInt(CurrentItem.Frequency) == 1)
                    {
                        data += ", \"freq_7\":\"" + Preferences.Get("frequency_1", "value", CurrentId) + "\"";
                    }
                    else if (FrequencyToInt(CurrentItem.Frequency) == 2)
                    {
                        data += ", \"freq_5\":\"" + Preferences.Get("frequency_1", "value", CurrentId) + "\"";
                        data += ", \"freq_6\":\"" + Preferences.Get("frequency_2", "value", CurrentId) + "\"";
                    }
                    else if (FrequencyToInt(CurrentItem.Frequency) == 4)
                    {
                        data += ", \"freq_1\":\"" + Preferences.Get("frequency_1", "value", CurrentId) + "\"";
                        data += ", \"freq_2\":\"" + Preferences.Get("frequency_2", "value", CurrentId) + "\"";
                        data += ", \"freq_3\":\"" + Preferences.Get("frequency_3", "value", CurrentId) + "\"";
                        data += ", \"freq_4\":\"" + Preferences.Get("frequency_4", "value", CurrentId) + "\"";
                    }
                    if (Preferences.Get("frequency_1", "value", CurrentId) != "0" || Preferences.Get("frequency_2", "value", CurrentId) != "0" || Preferences.Get("frequency_3", "value", CurrentId) != "0" || Preferences.Get("frequency_4", "value", CurrentId) != "0")
                    {
                        if (Preferences.Get("frequency_1", "value", CurrentId) != "0")
                        {

                            for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                            {
                                Console.WriteLine("toimii for now 1 kierros " + i);

                                int freq = FrequencyToInt(CurrentItem.Frequency);
                                if (CurrentItem.Symptoms.Length > i)
                                {


                                    if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom1))
                                    {
                                        data += ", \"uap_1\":\"" + Preferences.Get("gut_symptom_1a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_1a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_1\":\"" + Preferences.Get("intensity_1", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_1\":\"" + Preferences.Get("duration_1", "value", CurrentId) + "\"";
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_1\":\"" + Preferences.Get("duration_1", "value", CurrentId) + "\"";
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_1\":\"" + Preferences.Get("duration_1", "value", CurrentId) + "\"";
                                            }
                                        }
                                    }
                                    else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom2))
                                    {
                                        data += ", \"lap_1\":\"" + Preferences.Get("gut_symptom_2a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_2a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_2\":\"" + Preferences.Get("intensity_2", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_2\":\"" + Preferences.Get("duration_2", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_2\":\"" + Preferences.Get("duration_2", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_2\":\"" + Preferences.Get("duration_2", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom3))
                                    {
                                        data += ", \"cramping_1\":\"" + Preferences.Get("gut_symptom_3a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_3a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_3\":\"" + Preferences.Get("intensity_3", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_3\":\"" + Preferences.Get("duration_3", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_3\":\"" + Preferences.Get("duration_3", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_3\":\"" + Preferences.Get("duration_3", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom4))
                                    {
                                        data += ", \"bloating_1\":\"" + Preferences.Get("gut_symptom_4a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_4a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_4\":\"" + Preferences.Get("intensity_4", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_4\":\"" + Preferences.Get("duration_4", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_4\":\"" + Preferences.Get("duration_4", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_4\":\"" + Preferences.Get("duration_4", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom5))
                                    {
                                        Console.WriteLine(CurrentItem.Symptoms[i]);
                                        data += ", \"flatulence_1\":\"" + Preferences.Get("gut_symptom_5a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_5a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_5\":\"" + Preferences.Get("intensity_5", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_5\":\"" + Preferences.Get("duration_5", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_5\":\"" + Preferences.Get("duration_5", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_5\":\"" + Preferences.Get("duration_5", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom6))
                                    {
                                        data += ", \"ag_1\":\"" + Preferences.Get("gut_symptom_6a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_6a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_6\":\"" + Preferences.Get("intensity_6", "value", CurrentId) + "\"";

                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_6\":\"" + Preferences.Get("duration_6", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_6\":\"" + Preferences.Get("duration_6", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_6\":\"" + Preferences.Get("duration_6", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (customInt == 0)
                                    {
                                        Console.WriteLine(CurrentItem.Symptoms[i]);
                                        data += ", \"gut_symptom_1a\":\"" + Preferences.Get("gut_symptom_7a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_7a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_7\":\"" + Preferences.Get("intensity_7", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_7\":\"" + Preferences.Get("duration_7", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_7\":\"" + Preferences.Get("duration_7", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_7\":\"" + Preferences.Get("duration_7", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 1)
                                    {
                                        data += ", \"gut_symptom_2a\":\"" + Preferences.Get("gut_symptom_8a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_8a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_8\":\"" + Preferences.Get("intensity_8", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_8\":\"" + Preferences.Get("duration_8", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_8\":\"" + Preferences.Get("duration_8", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_8\":\"" + Preferences.Get("duration_8", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 2)
                                    {
                                        data += ", \"gut_symptom_3a\":\"" + Preferences.Get("gut_symptom_9a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_9a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_9\":\"" + Preferences.Get("intensity_9", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_9\":\"" + Preferences.Get("duration_9", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_9\":\"" + Preferences.Get("duration_9", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_9\":\"" + Preferences.Get("duration_9", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 3)
                                    {
                                        data += ", \"gut_symptom_4a\":\"" + Preferences.Get("gut_symptom_10a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("gut_symptom_10a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_10\":\"" + Preferences.Get("intensity_10", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_10\":\"" + Preferences.Get("duration_10", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_10\":\"" + Preferences.Get("duration_10", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_10\":\"" + Preferences.Get("duration_10", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }


                                }
                            }
                            customInt = 0;
                            for (int i = 0; i < CurrentItem.OtherSymptoms.Length; i++)
                            {

                                Console.WriteLine("toimii for now 2 kierros " + i);
                                int freq = FrequencyToInt(CurrentItem.Frequency);
                                if (CurrentItem.OtherSymptoms.Length > i)
                                {

                                    if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom1))
                                    {
                                        data += ", \"mc_1\":\"" + Preferences.Get("other_symptom_1a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_1a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_11\":\"" + Preferences.Get("intensity_11", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_11\":\"" + Preferences.Get("duration_11", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_11\":\"" + Preferences.Get("duration_11", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_11\":\"" + Preferences.Get("duration_11", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom2))
                                    {
                                        data += ", \"headache_1\":\"" + Preferences.Get("other_symptom_2a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_2a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_12\":\"" + Preferences.Get("intensity_12", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_12\":\"" + Preferences.Get("duration_12", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_12\":\"" + Preferences.Get("duration_12", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_12\":\"" + Preferences.Get("duration_12", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom3))
                                    {
                                        data += ", \"bp_1\":\"" + Preferences.Get("other_symptom_3a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_3a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_13\":\"" + Preferences.Get("intensity_13", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_13\":\"" + Preferences.Get("duration_13", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_13\":\"" + Preferences.Get("duration_13", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_13\":\"" + Preferences.Get("duration_13", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom4))
                                    {
                                        data += ", \"heartburn_1\":\"" + Preferences.Get("other_symptom_4a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_4a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_14\":\"" + Preferences.Get("intensity_14", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_14\":\"" + Preferences.Get("duration_14", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_14\":\"" + Preferences.Get("duration_14", "value", CurrentId) + "\"";

                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_14\":\"" + Preferences.Get("duration_14", "value", CurrentId) + "\"";

                                            }
                                        }
                                    }
                                    else if (customInt == 0)
                                    {
                                        data += ", \"other_symptom_1a\":\"" + Preferences.Get("other_symptom_5a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_5a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_15\":\"" + Preferences.Get("intensity_15", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_15\":\"" + Preferences.Get("duration_15", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_15\":\"" + Preferences.Get("duration_15", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_15\":\"" + Preferences.Get("duration_15", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 1)
                                    {
                                        data += ", \"other_symptom_2a\":\"" + Preferences.Get("other_symptom_6a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_6a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_16\":\"" + Preferences.Get("intensity_16", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_16\":\"" + Preferences.Get("duration_16", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_16\":\"" + Preferences.Get("duration_16", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_16\":\"" + Preferences.Get("duration_16", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 2)
                                    {
                                        data += ", \"other_symptom_3a\":\"" + Preferences.Get("other_symptom_7a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_7a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_17\":\"" + Preferences.Get("intensity_17", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_17\":\"" + Preferences.Get("duration_17", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_17\":\"" + Preferences.Get("duration_17", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_17\":\"" + Preferences.Get("duration_17", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 3)
                                    {
                                        data += ", \"other_symptom_4a\":\"" + Preferences.Get("other_symptom_8a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_8a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_18\":\"" + Preferences.Get("intensity_18", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_18\":\"" + Preferences.Get("duration_18", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_18\":\"" + Preferences.Get("duration_18", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_18\":\"" + Preferences.Get("duration_18", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 4)
                                    {
                                        data += ", \"other_symptom_5a\":\"" + Preferences.Get("other_symptom_9a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_9a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_19\":\"" + Preferences.Get("intensity_19", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_19\":\"" + Preferences.Get("duration_19", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_19\":\"" + Preferences.Get("duration_19", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_19\":\"" + Preferences.Get("duration_19", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                    else if (customInt == 5)
                                    {
                                        data += ", \"other_symptom_6a\":\"" + Preferences.Get("other_symptom_10a", "value", CurrentId) + "\"";
                                        if (Preferences.Get("other_symptom_10a", "value", CurrentId) != "0")
                                        {
                                            data += ", \"intensity_20\":\"" + Preferences.Get("intensity_20", "value", CurrentId) + "\"";
                                            if (freq == 1)
                                            {
                                                data += ", \"hours_16_20\":\"" + Preferences.Get("duration_20", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 2)
                                            {
                                                data += ", \"hours_8_20\":\"" + Preferences.Get("duration_20", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                            else if (freq == 4)
                                            {
                                                data += ", \"hours_4_20\":\"" + Preferences.Get("duration_20", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }

                                }
                            }
                        }
                        if (FrequencyToInt(CurrentItem.Frequency) > 1)
                        {
                            if (Preferences.Get("frequency_2", "value", CurrentId) != "0")
                            {
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {
                                    Console.WriteLine("toimii for now 3 kierros " + i);
                                    int freq = FrequencyToInt(CurrentItem.Frequency);
                                    if (CurrentItem.Symptoms.Length > i && freq != 1)
                                    {


                                        if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom1))
                                        {
                                            data += ", \"uap_2\":\"" + Preferences.Get("gut_symptom_1b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_1b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_21\":\"" + Preferences.Get("intensity_21", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_21\":\"" + Preferences.Get("duration_21", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_21\":\"" + Preferences.Get("duration_21", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom2))
                                        {
                                            data += ", \"lap_2\":\"" + Preferences.Get("gut_symptom_2b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_2b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_22\":\"" + Preferences.Get("intensity_22", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_22\":\"" + Preferences.Get("duration_22", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_22\":\"" + Preferences.Get("duration_22", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom3))
                                        {
                                            data += ", \"cramping_2\":\"" + Preferences.Get("gut_symptom_3b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_3b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_23\":\"" + Preferences.Get("intensity_23", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_23\":\"" + Preferences.Get("duration_23", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_23\":\"" + Preferences.Get("duration_23", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom4))
                                        {
                                            data += ", \"bloating_2\":\"" + Preferences.Get("gut_symptom_4b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_4b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_24\":\"" + Preferences.Get("intensity_24", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_24\":\"" + Preferences.Get("duration_24", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_24\":\"" + Preferences.Get("duration_24", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom5))
                                        {
                                            data += ", \"flatulence_2\":\"" + Preferences.Get("gut_symptom_5b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_5b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_25\":\"" + Preferences.Get("intensity_25", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_25\":\"" + Preferences.Get("duration_25", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_25\":\"" + Preferences.Get("duration_25", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom6))
                                        {
                                            data += ", \"ag_2\":\"" + Preferences.Get("gut_symptom_6b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_6b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_26\":\"" + Preferences.Get("intensity_26", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_26\":\"" + Preferences.Get("duration_26", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_26\":\"" + Preferences.Get("duration_26", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"gut_symptom_1b\":\"" + Preferences.Get("gut_symptom_7b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_7b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_27\":\"" + Preferences.Get("intensity_27", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_27\":\"" + Preferences.Get("duration_27", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_27\":\"" + Preferences.Get("duration_27", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"gut_symptom_2b\":\"" + Preferences.Get("gut_symptom_8b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_8b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_28\":\"" + Preferences.Get("intensity_28", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_28\":\"" + Preferences.Get("duration_28", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_28\":\"" + Preferences.Get("duration_28", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"gut_symptom_3b\":\"" + Preferences.Get("gut_symptom_9b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_9b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_29\":\"" + Preferences.Get("intensity_29", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_29\":\"" + Preferences.Get("duration_29", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_29\":\"" + Preferences.Get("duration_29", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"gut_symptom_4b\":\"" + Preferences.Get("gut_symptom_10b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_10b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_30\":\"" + Preferences.Get("intensity_30", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_30\":\"" + Preferences.Get("duration_30", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_30\":\"" + Preferences.Get("duration_30", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }

                                    }
                                }
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {

                                    Console.WriteLine("toimii for now 4 kierros " + i);
                                    int freq = FrequencyToInt(CurrentItem.Frequency);
                                    if (CurrentItem.OtherSymptoms.Length > i)
                                    {

                                        if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom1))
                                        {
                                            data += ", \"mc_2\":\"" + Preferences.Get("other_symptom_1b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_1b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_31\":\"" + Preferences.Get("intensity_31", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_31\":\"" + Preferences.Get("duration_31", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_31\":\"" + Preferences.Get("duration_31", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom2))
                                        {
                                            data += ", \"headache_2\":\"" + Preferences.Get("other_symptom_2b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_2b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_32\":\"" + Preferences.Get("intensity_32", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_32\":\"" + Preferences.Get("duration_32", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_32\":\"" + Preferences.Get("duration_32", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom3))
                                        {
                                            data += ", \"bp_2\":\"" + Preferences.Get("other_symptom_3b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_3b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_33\":\"" + Preferences.Get("intensity_33", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_33\":\"" + Preferences.Get("duration_33", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_33\":\"" + Preferences.Get("duration_33", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom4))
                                        {
                                            data += ", \"heartburn_2\":\"" + Preferences.Get("other_symptom_4b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_4b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_34\":\"" + Preferences.Get("intensity_34", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_34\":\"" + Preferences.Get("duration_34", "value", CurrentId) + "\"";

                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_34\":\"" + Preferences.Get("duration_34", "value", CurrentId) + "\"";

                                                }
                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"other_symptom_1b\":\"" + Preferences.Get("other_symptom_5b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_5b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_35\":\"" + Preferences.Get("intensity_35", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_35\":\"" + Preferences.Get("duration_35", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_35\":\"" + Preferences.Get("duration_35", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"other_symptom_2b\":\"" + Preferences.Get("other_symptom_6b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_6b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_36\":\"" + Preferences.Get("intensity_36", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_36\":\"" + Preferences.Get("duration_36", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_36\":\"" + Preferences.Get("duration_36", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"other_symptom_3b\":\"" + Preferences.Get("other_symptom_7b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_7b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_37\":\"" + Preferences.Get("intensity_37", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_37\":\"" + Preferences.Get("duration_37", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_37\":\"" + Preferences.Get("duration_37", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"other_symptom_4b\":\"" + Preferences.Get("other_symptom_8b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_8b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_38\":\"" + Preferences.Get("intensity_38", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_38\":\"" + Preferences.Get("duration_38", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_38\":\"" + Preferences.Get("duration_38", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 4)
                                        {
                                            data += ", \"other_symptom_5b\":\"" + Preferences.Get("other_symptom_9b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_9b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_39\":\"" + Preferences.Get("intensity_39", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_39\":\"" + Preferences.Get("duration_39", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_39\":\"" + Preferences.Get("duration_39", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                        else if (customInt == 5)
                                        {
                                            data += ", \"other_symptom_6b\":\"" + Preferences.Get("other_symptom_10b", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_10b", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_40\":\"" + Preferences.Get("intensity_40", "value", CurrentId) + "\"";

                                                if (freq == 2)
                                                {
                                                    data += ", \"hours_8_40\":\"" + Preferences.Get("duration_40", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                                else if (freq == 4)
                                                {
                                                    data += ", \"hours_4_40\":\"" + Preferences.Get("duration_40", "value", CurrentId) + "\"";
                                                    customInt++;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        if (FrequencyToInt(CurrentItem.Frequency) > 2)
                        {
                            if (Preferences.Get("frequency_3", "value", CurrentId) != "0")
                            {
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {

                                    Console.WriteLine("toimii for now 5 kierros " + i);
                                    int freq = FrequencyToInt(CurrentItem.Frequency);

                                    if (CurrentItem.Symptoms.Length > i && freq != 1 && freq != 2)
                                    {


                                        if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom1))
                                        {
                                            data += ", \"uap_3\":\"" + Preferences.Get("gut_symptom_1c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_1c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_41\":\"" + Preferences.Get("intensity_41", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_41\":\"" + Preferences.Get("duration_41", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom2))
                                        {
                                            data += ", \"lap_3\":\"" + Preferences.Get("gut_symptom_2c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_2c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_42\":\"" + Preferences.Get("intensity_42", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_42\":\"" + Preferences.Get("duration_42", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom3))
                                        {
                                            data += ", \"cramping_3\":\"" + Preferences.Get("gut_symptom_3c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_3c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_43\":\"" + Preferences.Get("intensity_43", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_43\":\"" + Preferences.Get("duration_43", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom4))
                                        {
                                            data += ", \"bloating_3\":\"" + Preferences.Get("gut_symptom_4c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_4c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_44\":\"" + Preferences.Get("intensity_44", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_44\":\"" + Preferences.Get("duration_44", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom5))
                                        {
                                            data += ", \"flatulence_3\":\"" + Preferences.Get("gut_symptom_5c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_5c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_45\":\"" + Preferences.Get("intensity_45", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_45\":\"" + Preferences.Get("duration_45", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom6))
                                        {
                                            data += ", \"ag_3\":\"" + Preferences.Get("gut_symptom_6c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_6c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_46\":\"" + Preferences.Get("intensity_46", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_46\":\"" + Preferences.Get("duration_46", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"gut_symptom_1c\":\"" + Preferences.Get("gut_symptom_7c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_7c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_47\":\"" + Preferences.Get("intensity_47", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_47\":\"" + Preferences.Get("duration_47", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"gut_symptom_2c\":\"" + Preferences.Get("gut_symptom_8c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_8c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_48\":\"" + Preferences.Get("intensity_48", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_48\":\"" + Preferences.Get("duration_48", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"gut_symptom_3c\":\"" + Preferences.Get("gut_symptom_9c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_9c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_49\":\"" + Preferences.Get("intensity_49", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_49\":\"" + Preferences.Get("duration_49", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"gut_symptom_4c\":\"" + Preferences.Get("gut_symptom_10c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_10c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_50\":\"" + Preferences.Get("intensity_50", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_50\":\"" + Preferences.Get("duration_50", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }

                                    }
                                }
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {

                                    Console.WriteLine("toimii for now 6 kierros " + i);
                                    if (CurrentItem.OtherSymptoms.Length > i)
                                    {

                                        if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom1))
                                        {
                                            data += ", \"mc_3\":\"" + Preferences.Get("other_symptom_1c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_1c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_51\":\"" + Preferences.Get("intensity_51", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_51\":\"" + Preferences.Get("duration_51", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom2))
                                        {
                                            data += ", \"headache_3\":\"" + Preferences.Get("other_symptom_2c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_2c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_52\":\"" + Preferences.Get("intensity_52", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_52\":\"" + Preferences.Get("duration_52", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom3))
                                        {
                                            data += ", \"bp_3\":\"" + Preferences.Get("other_symptom_3c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_3c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_53\":\"" + Preferences.Get("intensity_53", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_53\":\"" + Preferences.Get("duration_53", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom4))
                                        {
                                            data += ", \"heartburn_3\":\"" + Preferences.Get("other_symptom_4c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_4c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_54\":\"" + Preferences.Get("intensity_54", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_54\":\"" + Preferences.Get("duration_54", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"other_symptom_1c\":\"" + Preferences.Get("other_symptom_5c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_5c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_55\":\"" + Preferences.Get("intensity_55", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_55\":\"" + Preferences.Get("duration_55", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"other_symptom_2c\":\"" + Preferences.Get("other_symptom_6c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_6c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_56\":\"" + Preferences.Get("intensity_56", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_56\":\"" + Preferences.Get("duration_56", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"other_symptom_3c\":\"" + Preferences.Get("other_symptom_7c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_7c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_57\":\"" + Preferences.Get("intensity_57", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_57\":\"" + Preferences.Get("duration_57", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"other_symptom_4c\":\"" + Preferences.Get("other_symptom_8c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_8c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_58\":\"" + Preferences.Get("intensity_58", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_58\":\"" + Preferences.Get("duration_58", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 4)
                                        {
                                            data += ", \"other_symptom_5c\":\"" + Preferences.Get("other_symptom_9c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_9c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_59\":\"" + Preferences.Get("intensity_59", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_59\":\"" + Preferences.Get("duration_59", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 5)
                                        {
                                            data += ", \"other_symptom_6c\":\"" + Preferences.Get("other_symptom_10c", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_10c", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_60\":\"" + Preferences.Get("intensity_60", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_60\":\"" + Preferences.Get("duration_60", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }

                                    }
                                }
                            }
                            if (Preferences.Get("frequency_4", "value", CurrentId) != "0")
                            {
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {

                                    Console.WriteLine("toimii for now 7 kierros " + i);
                                    int freq = FrequencyToInt(CurrentItem.Frequency);

                                    if (CurrentItem.Symptoms.Length > i && freq != 1 && freq != 2)
                                    {


                                        if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom1))
                                        {
                                            data += ", \"uap_4\":\"" + Preferences.Get("gut_symptom_1d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_1d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_61\":\"" + Preferences.Get("intensity_61", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_61\":\"" + Preferences.Get("duration_61", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom2))
                                        {
                                            data += ", \"lap_4\":\"" + Preferences.Get("gut_symptom_2d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_2d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_62\":\"" + Preferences.Get("intensity_62", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_62\":\"" + Preferences.Get("duration_62", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom3))
                                        {
                                            data += ", \"cramping_4\":\"" + Preferences.Get("gut_symptom_3d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_3d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_63\":\"" + Preferences.Get("intensity_63", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_63\":\"" + Preferences.Get("duration_63", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom4))
                                        {
                                            data += ", \"bloating_4\":\"" + Preferences.Get("gut_symptom_4d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_4d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_64\":\"" + Preferences.Get("intensity_64", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_64\":\"" + Preferences.Get("duration_64", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom5))
                                        {
                                            data += ", \"flatulence_4\":\"" + Preferences.Get("gut_symptom_5d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_5d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_65\":\"" + Preferences.Get("intensity_65", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_65\":\"" + Preferences.Get("duration_65", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.Symptoms[i].Contains(Properties.Resources.GutSymptom6))
                                        {
                                            data += ", \"ag_4\":\"" + Preferences.Get("gut_symptom_6d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_6d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_66\":\"" + Preferences.Get("intensity_66", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_66\":\"" + Preferences.Get("duration_66", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"gut_symptom_1d\":\"" + Preferences.Get("gut_symptom_7d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_7d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_67\":\"" + Preferences.Get("intensity_67", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_67\":\"" + Preferences.Get("duration_67", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"gut_symptom_2d\":\"" + Preferences.Get("gut_symptom_8d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_8d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_68\":\"" + Preferences.Get("intensity_68", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_68\":\"" + Preferences.Get("duration_68", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"gut_symptom_3d\":\"" + Preferences.Get("gut_symptom_9d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_9d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_69\":\"" + Preferences.Get("intensity_69", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_69\":\"" + Preferences.Get("duration_69", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"gut_symptom_4d\":\"" + Preferences.Get("gut_symptom_10d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("gut_symptom_10d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_70\":\"" + Preferences.Get("intensity_70", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_70\":\"" + Preferences.Get("duration_70", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                }
                                customInt = 0;
                                for (int i = 0; i < CurrentItem.Symptoms.Length; i++)
                                {
                                    Console.WriteLine("toimii for now 8 kierros " + i);
                                    if (CurrentItem.OtherSymptoms.Length > i)
                                    {

                                        if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom1))
                                        {
                                            data += ", \"mc_4\":\"" + Preferences.Get("other_symptom_1d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_1d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_71\":\"" + Preferences.Get("intensity_71", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_71\":\"" + Preferences.Get("duration_71", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom2))
                                        {
                                            data += ", \"headache_4\":\"" + Preferences.Get("other_symptom_2d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_2d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_72\":\"" + Preferences.Get("intensity_72", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_72\":\"" + Preferences.Get("duration_72", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom3))
                                        {
                                            data += ", \"bp_4\":\"" + Preferences.Get("other_symptom_3d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_3d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_73\":\"" + Preferences.Get("intensity_73", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_73\":\"" + Preferences.Get("duration_73", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (CurrentItem.OtherSymptoms[i].Contains(Properties.Resources.OtherSymptom4))
                                        {
                                            data += ", \"heartburn_4\":\"" + Preferences.Get("other_symptom_4d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_4d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_74\":\"" + Preferences.Get("intensity_74", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_74\":\"" + Preferences.Get("duration_74", "value", CurrentId) + "\"";

                                            }
                                        }
                                        else if (customInt == 0)
                                        {
                                            data += ", \"other_symptom_1d\":\"" + Preferences.Get("other_symptom_5d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_5d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_75\":\"" + Preferences.Get("intensity_75", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_75\":\"" + Preferences.Get("duration_75", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 1)
                                        {
                                            data += ", \"other_symptom_2d\":\"" + Preferences.Get("other_symptom_6d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_6d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_76\":\"" + Preferences.Get("intensity_76", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_76\":\"" + Preferences.Get("duration_76", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 2)
                                        {
                                            data += ", \"other_symptom_3d\":\"" + Preferences.Get("other_symptom_7d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_7d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_77\":\"" + Preferences.Get("intensity_77", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_77\":\"" + Preferences.Get("duration_77", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 3)
                                        {
                                            data += ", \"other_symptom_4d\":\"" + Preferences.Get("other_symptom_8d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_8d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_78\":\"" + Preferences.Get("intensity_78", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_78\":\"" + Preferences.Get("duration_78", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 4)
                                        {
                                            data += ", \"other_symptom_5d\":\"" + Preferences.Get("other_symptom_9d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_9d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_79\":\"" + Preferences.Get("intensity_79", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_79\":\"" + Preferences.Get("duration_79", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                        else if (customInt == 5)
                                        {
                                            data += ", \"other_symptom_6d\":\"" + Preferences.Get("other_symptom_10d", "value", CurrentId) + "\"";
                                            if (Preferences.Get("other_symptom_10d", "value", CurrentId) != "0")
                                            {
                                                data += ", \"intensity_80\":\"" + Preferences.Get("intensity_80", "value", CurrentId) + "\"";
                                                data += ", \"hours_4_80\":\"" + Preferences.Get("duration_80", "value", CurrentId) + "\"";
                                                customInt++;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
                }

                if (Preferences.Get("ssq", "value", CurrentId) == "1")
            {
                data += ", \"ssq\":\"" + Preferences.Get("ssq", "value", CurrentId) + "\"";
                if (Preferences.Get("sl_symptom_1", "value", CurrentId) == "1" || Preferences.Get("sl_symptom_1", "value", CurrentId) == "0")
                {
                    data += ", \"sleep_symptom_1\":\"" + Preferences.Get("sl_symptom_1", "value", CurrentId) + "\"";
                }
                if (Preferences.Get("sl_symptom_2", "value", CurrentId) == "1" || Preferences.Get("sl_symptom_2", "value", CurrentId) == "0")
                {
                    data += ", \"sleep_symptom_2\":\"" + Preferences.Get("sl_symptom_2", "value", CurrentId) + "\"";
                }
                if (Preferences.Get("sl_symptom_3", "value", CurrentId) == "1" || Preferences.Get("sl_symptom_3", "value", CurrentId) == "0")
                {
                    data += ", \"sleep_symptom_3\":\"" + Preferences.Get("sl_symptom_3", "value", CurrentId) + "\"";
                }
                if (Preferences.Get("sl_symptom_4", "value", CurrentId) == "1" || Preferences.Get("sl_symptom_4", "value", CurrentId) == "0")
                {
                    data += ", \"sleep_symptom_4\":\"" + Preferences.Get("sl_symptom_4", "value", CurrentId) + "\"";
                }
                if (Preferences.Get("sl_symptom_5", "value", CurrentId) == "1" || Preferences.Get("sl_symptom_5", "value", CurrentId) == "0")
                {
                    data += ", \"sleep_symptom_5\":\"" + Preferences.Get("sl_symptom_5", "value", CurrentId) + "\"";
                }
            }
                else if (Preferences.Get("ssq", "value", CurrentId) == "0")
            {
                data += ", \"ssq\":\"" + Preferences.Get("ssq", "value", CurrentId) + "\"";

            }

                data += "}]";
                Console.WriteLine(data);


                string data1 = "[{\"record_id\":5, \"stool_quality_study_name\":\"toimii\"}]";

                Console.WriteLine(data1);

                var values = new Dictionary<string, string>
            {
                    { "token", "540E97741AA3EFF280E55B5C9DB1CD6D" },
                    { "content", "record" },
                    { "action", "import" },
                    { "format", "json" },
                    { "overwriteBehavior", "normal" },
                    { "forceAutoNumber", "false" },
                    { "data",  data},
                    { "returnContent", "count" },
                    {"returnFormat", "json" }
            };

                /*var values = new Dictionary<string, string>
                 {
                        { "token", "540E97741AA3EFF280E55B5C9DB1CD6D" },  
                        { "action", "rename" },
                        { "content", "record" },
                        { "record", "uusi4" },
                        { "new_record_name", "uusi5" },
                        { "returnFormat", "json" }
                 };*/

                var content = new FormUrlEncodedContent(values);
                var response = await client.PostAsync("https://redcap.utu.fi/api/", content);
                var responseString = await response.Content.ReadAsStringAsync();

                if (responseString.Contains("error"))
                {
                    Save_Fail.IsVisible = true;
                    Save_Success.IsVisible = false;
                    CurrentItem.finished = false;
                    Save_Settings("finished", "0", CurrentId);
                }
                else
                {
                    Save_Success.IsVisible = true;
                    Save_Fail.IsVisible = false;
                    CurrentItem.finished = true;
                    Save_Settings("finished", "1", CurrentId);
                }

                Console.WriteLine(responseString);
            }


        public GutSymptomPage()
        {
            
            InitializeComponent();
            CurrentId = DaysViewModel.day_id;

            loadId = ItemsViewModel.id;
            LoadItemId(loadId);

            if (CurrentItem.SleepSymptoms.Length != 0)
            {
                SleepSymptomsQuestion.IsVisible = true;
                SLS1A.IsVisible = true;
                SLS1B.IsVisible = true;
                NoSymptoms.Text = Properties.Resources.GutQuestion6;
            }
            string placeholder = "";
            placeholder = Preferences.Get("gut_symptom_diary_q1", "value", CurrentId);

            if (placeholder == "1")
            {
                RB1A.IsChecked = true;
                RB1B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                RB1A.IsChecked = false;
                RB1B.IsChecked = true;
            }

            placeholder = Preferences.Get("frequency_1", "value", CurrentId);

            if (placeholder == "1")
            {
                RB2A.IsChecked = true;
                RB2B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                RB2A.IsChecked = false;
                RB2B.IsChecked = true;
            }



            placeholder = Preferences.Get("gut_symptom_1a", "value", CurrentId);

            if (placeholder == "1")
            {
                S1A.IsChecked = true;
                S1B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S1A.IsChecked = false;
                S1B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_1", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I1.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I1.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_1", "value", CurrentId);

            for(int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D1.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_2a", "value", CurrentId);

            if (placeholder == "1")
            {
                S2A.IsChecked = true;
                S2B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S2A.IsChecked = false;
                S2B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_2", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I2.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I2.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_2", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D2.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_3a", "value", CurrentId);

            if (placeholder == "1")
            {
                S3A.IsChecked = true;
                S3B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S3A.IsChecked = false;
                S3B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_3", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I3.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I3.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_3", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D3.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_4a", "value", CurrentId);

            if (placeholder == "1")
            {
                S4A.IsChecked = true;
                S4B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S4A.IsChecked = false;
                S4B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_4", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I4.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I4.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_4", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D4.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_5a", "value", CurrentId);

            if (placeholder == "1")
            {
                S5A.IsChecked = true;
                S5B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S5A.IsChecked = false;
                S5B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_5", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I5.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I5.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_5", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D5.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_6a", "value", CurrentId);

            if (placeholder == "1")
            {
                S6A.IsChecked = true;
                S6B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S6A.IsChecked = false;
                S6B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_6", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I6.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I6.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_6", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D6.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_7a", "value", CurrentId);

            if (placeholder == "1")
            {
                S7A.IsChecked = true;
                S7B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S7A.IsChecked = false;
                S7B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_7", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I7.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I7.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_7", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D7.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_8a", "value", CurrentId);

            if (placeholder == "1")
            {
                S8A.IsChecked = true;
                S8B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S8A.IsChecked = false;
                S8B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_8", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I8.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I8.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_8", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D8.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_9a", "value", CurrentId);

            if (placeholder == "1")
            {
                S9A.IsChecked = true;
                S9B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S9A.IsChecked = false;
                S9B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_9", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I9.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I9.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_9", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D9.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_10a", "value", CurrentId);

            if (placeholder == "1")
            {
                S10A.IsChecked = true;
                S10B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S10A.IsChecked = false;
                S10B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_10", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I10.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I10.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_10", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D10.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_1a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS1A.IsChecked = true;
                OS1B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS1A.IsChecked = false;
                OS1B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_11", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI1.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI1.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_11", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD1.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_2a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS2A.IsChecked = true;
                OS2B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS2A.IsChecked = false;
                OS2B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_12", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI2.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI2.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_12", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD2.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_3a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS3A.IsChecked = true;
                OS3B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS3A.IsChecked = false;
                OS3B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_13", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI3.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI3.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_13", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD3.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_4a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS4A.IsChecked = true;
                OS4B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS4A.IsChecked = false;
                OS4B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_14", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI4.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI4.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_14", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD4.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_5a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS5A.IsChecked = true;
                OS5B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS5A.IsChecked = false;
                OS5B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_15", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI5.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI5.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_15", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD5.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_6a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS6A.IsChecked = true;
                OS6B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS6A.IsChecked = false;
                OS6B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_16", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI6.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI6.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_16", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD6.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_7a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS7A.IsChecked = true;
                OS7B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS7A.IsChecked = false;
                OS7B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_17", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI7.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI7.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_17", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD7.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_8a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS8A.IsChecked = true;
                OS8B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS8A.IsChecked = false;
                OS8B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_18", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI8.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI8.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_18", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD8.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_9a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS9A.IsChecked = true;
                OS9B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS9A.IsChecked = false;
                OS9B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_19", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI9.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI9.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_19", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD9.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_10a", "value", CurrentId);

            if (placeholder == "1")
            {
                OS10A.IsChecked = true;
                OS10B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS10A.IsChecked = false;
                OS10B.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_20", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI10.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI10.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_20", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD10.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("frequency_2", "value", CurrentId);

            if (placeholder == "1" && CurrentItem.Frequency != "1")
            {
                RB2A2.IsChecked = true;
                RB2B2.IsChecked = false;
            }
            if (placeholder == "0" && CurrentItem.Frequency != "1")
            {
                RB2A2.IsChecked = false;
                RB2B2.IsChecked = true;
            }

            placeholder = Preferences.Get("gut_symptom_1b", "value", CurrentId);

            if (placeholder == "1")
            {
                S1A2.IsChecked = true;
                S1B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S1A2.IsChecked = false;
                S1B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_21", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I1A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I1A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_21", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D1A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_2b", "value", CurrentId);

            if (placeholder == "1")
            {
                S2A2.IsChecked = true;
                S2B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S2A2.IsChecked = false;
                S2B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_22", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I2A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I2A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_22", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D2A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_3b", "value", CurrentId);

            if (placeholder == "1")
            {
                S3A2.IsChecked = true;
                S3B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S3A2.IsChecked = false;
                S3B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_23", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I3A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I3A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_23", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D3A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_4b", "value", CurrentId);

            if (placeholder == "1")
            {
                S4A2.IsChecked = true;
                S4B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S4A2.IsChecked = false;
                S4B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_24", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I4A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I4A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_24", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D4A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_5b", "value", CurrentId);

            if (placeholder == "1")
            {
                S5A2.IsChecked = true;
                S5B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S5A2.IsChecked = false;
                S5B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_25", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I5A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I5A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_25", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D5A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_6b", "value", CurrentId);

            if (placeholder == "1")
            {
                S6A2.IsChecked = true;
                S6B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S6A2.IsChecked = false;
                S6B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_26", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I6A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I6A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_26", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D6A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_7b", "value", CurrentId);

            if (placeholder == "1")
            {
                S7A2.IsChecked = true;
                S7B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S7A2.IsChecked = false;
                S7B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_27", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I7A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I7A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_27", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D7A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_8b", "value", CurrentId);

            if (placeholder == "1")
            {
                S8A2.IsChecked = true;
                S8B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S8A2.IsChecked = false;
                S8B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_28", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I8A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I8A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_28", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D8A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_9b", "value", CurrentId);

            if (placeholder == "1")
            {
                S9A2.IsChecked = true;
                S9B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S9A2.IsChecked = false;
                S9B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_29", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I9A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I9A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_29", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D9A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_10b", "value", CurrentId);

            if (placeholder == "1")
            {
                S10A2.IsChecked = true;
                S10B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S10A2.IsChecked = false;
                S10B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_30", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I10A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I10A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_30", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D10A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_1b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS1A2.IsChecked = true;
                OS1B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS1A2.IsChecked = false;
                OS1B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_31", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI1A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI1A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_31", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD1A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_2b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS2A2.IsChecked = true;
                OS2B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS2A2.IsChecked = false;
                OS2B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_32", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI2A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI2A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_32", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD2A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_3b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS3A2.IsChecked = true;
                OS3B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS3A2.IsChecked = false;
                OS3B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_33", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI3A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI3A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_33", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD3A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_4b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS4A2.IsChecked = true;
                OS4B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS4A2.IsChecked = false;
                OS4B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_34", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI4A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI4A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_34", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD4A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_5b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS5A2.IsChecked = true;
                OS5B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS5A2.IsChecked = false;
                OS5B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_35", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI5A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI5A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_35", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD5A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_6b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS6A2.IsChecked = true;
                OS6B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS6A2.IsChecked = false;
                OS6B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_36", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI6A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI6A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_36", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD6A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_7b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS7A2.IsChecked = true;
                OS7B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS7A2.IsChecked = false;
                OS7B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_37", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI7A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI7A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_37", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD7A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_8b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS8A2.IsChecked = true;
                OS8B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS8A2.IsChecked = false;
                OS8B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_38", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI8A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI8A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_38", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD8A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_9b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS9A2.IsChecked = true;
                OS9B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS9A2.IsChecked = false;
                OS9B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_39", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI9A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI9A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_39", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD9A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_10b", "value", CurrentId);

            if (placeholder == "1")
            {
                OS10A2.IsChecked = true;
                OS10B2.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS10A2.IsChecked = false;
                OS10B2.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_40", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI10A.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI10A.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_40", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD10A.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("frequency_3", "value", CurrentId);

            if (placeholder == "1" && CurrentItem.Frequency != "1")
            {
                RB2A3.IsChecked = true;
                RB2B3.IsChecked = false;
            }
            if (placeholder == "0" && CurrentItem.Frequency != "1")
            {
                RB2A3.IsChecked = false;
                RB2B3.IsChecked = true;
            }


            placeholder = Preferences.Get("gut_symptom_1c", "value", CurrentId);

            if (placeholder == "1")
            {
                S1A3.IsChecked = true;
                S1B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S1A3.IsChecked = false;
                S1B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_41", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I1B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I1B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_41", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D1B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_2c", "value", CurrentId);

            if (placeholder == "1")
            {
                S2A3.IsChecked = true;
                S2B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S2A3.IsChecked = false;
                S2B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_42", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I2B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I2B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_42", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D2B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_3c", "value", CurrentId);

            if (placeholder == "1")
            {
                S3A3.IsChecked = true;
                S3B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S3A3.IsChecked = false;
                S3B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_43", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I3B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I3B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_43", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D3B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_4c", "value", CurrentId);

            if (placeholder == "1")
            {
                S4A3.IsChecked = true;
                S4B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S4A3.IsChecked = false;
                S4B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_44", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I4B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I4B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_44", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D4B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_5c", "value", CurrentId);

            if (placeholder == "1")
            {
                S5A3.IsChecked = true;
                S5B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S5A3.IsChecked = false;
                S5B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_45", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I5B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I5B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_45", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D5B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_6c", "value", CurrentId);

            if (placeholder == "1")
            {
                S6A3.IsChecked = true;
                S6B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S6A3.IsChecked = false;
                S6B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_46", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I6B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I6B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_46", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D6B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_7c", "value", CurrentId);

            if (placeholder == "1")
            {
                S7A3.IsChecked = true;
                S7B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S7A3.IsChecked = false;
                S7B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_47", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I7B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I7B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_47", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D7B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_8c", "value", CurrentId);

            if (placeholder == "1")
            {
                S8A3.IsChecked = true;
                S8B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S8A3.IsChecked = false;
                S8B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_48", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I8B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I8B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_48", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D8B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_9c", "value", CurrentId);

            if (placeholder == "1")
            {
                S9A3.IsChecked = true;
                S9B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S9A3.IsChecked = false;
                S9B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_49", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I9B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I9B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_49", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D9B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_10c", "value", CurrentId);

            if (placeholder == "1")
            {
                S10A3.IsChecked = true;
                S10B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S10A3.IsChecked = false;
                S10B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_50", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I10B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I10B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_50", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D10B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_1c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS1A3.IsChecked = true;
                OS1B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS1A3.IsChecked = false;
                OS1B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_51", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI1B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI1B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_51", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD1B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_2c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS2A3.IsChecked = true;
                OS2B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS2A3.IsChecked = false;
                OS2B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_52", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI2B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI2B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_52", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD2B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_3c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS3A3.IsChecked = true;
                OS3B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS3A3.IsChecked = false;
                OS3B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_53", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI3B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI3B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_53", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD3B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_4c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS4A3.IsChecked = true;
                OS4B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS4A3.IsChecked = false;
                OS4B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_54", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI4B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI4B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_54", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD4B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_5c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS5A3.IsChecked = true;
                OS5B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS5A3.IsChecked = false;
                OS5B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_55", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI5B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI5B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_55", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD5B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_6c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS6A3.IsChecked = true;
                OS6B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS6A3.IsChecked = false;
                OS6B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_56", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI6B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI6B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_56", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD6B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_7c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS7A3.IsChecked = true;
                OS7B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS7A3.IsChecked = false;
                OS7B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_57", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI7B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI7B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_57", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD7B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_8c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS8A3.IsChecked = true;
                OS8B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS8A3.IsChecked = false;
                OS8B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_58", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI8B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI8B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_58", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD8B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_9c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS9A3.IsChecked = true;
                OS9B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS9A3.IsChecked = false;
                OS9B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_59", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI9B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI9B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_59", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD9B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_10c", "value", CurrentId);

            if (placeholder == "1")
            {
                OS10A3.IsChecked = true;
                OS10B3.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS10A3.IsChecked = false;
                OS10B3.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_60", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI10B.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI10B.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_60", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD10B.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("frequency_4", "value", CurrentId);

            if (placeholder == "1" && CurrentItem.Frequency != "1")
            {
                RB2A4.IsChecked = true;
                RB2B4.IsChecked = false;
            }
            if (placeholder == "0" && CurrentItem.Frequency != "1")
            {
                RB2A4.IsChecked = false;
                RB2B4.IsChecked = true;
            }

            placeholder = Preferences.Get("gut_symptom_1d", "value", CurrentId);

            if (placeholder == "1")
            {
                S1A4.IsChecked = true;
                S1B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S1A4.IsChecked = false;
                S1B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_61", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I1C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I1C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_61", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D1C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_2d", "value", CurrentId);

            if (placeholder == "1")
            {
                S2A4.IsChecked = true;
                S2B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S2A4.IsChecked = false;
                S2B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_62", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I2C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I2C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_62", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D2C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_3d", "value", CurrentId);

            if (placeholder == "1")
            {
                S3A4.IsChecked = true;
                S3B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S3A4.IsChecked = false;
                S3B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_63", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I3C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I3C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_63", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D3C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_4d", "value", CurrentId);

            if (placeholder == "1")
            {
                S4A4.IsChecked = true;
                S4B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S4A4.IsChecked = false;
                S4B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_64", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I4C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I4C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_64", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D4C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_5d", "value", CurrentId);

            if (placeholder == "1")
            {
                S5A4.IsChecked = true;
                S5B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S5A4.IsChecked = false;
                S5B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_65", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I5C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I5C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_65", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D5C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_6d", "value", CurrentId);

            if (placeholder == "1")
            {
                S6A4.IsChecked = true;
                S6B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S6A4.IsChecked = false;
                S6B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_66", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I6C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I6C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_66", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D6C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_7d", "value", CurrentId);

            if (placeholder == "1")
            {
                S7A4.IsChecked = true;
                S7B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S7A4.IsChecked = false;
                S7B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_67", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I7C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I7C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_67", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D7C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_8d", "value", CurrentId);

            if (placeholder == "1")
            {
                S8A4.IsChecked = true;
                S8B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S8A4.IsChecked = false;
                S8B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_68", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I8C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I8C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_68", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D8C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_9d", "value", CurrentId);

            if (placeholder == "1")
            {
                S9A4.IsChecked = true;
                S9B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S9A4.IsChecked = false;
                S9B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_69", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I9C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I9C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_69", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D9C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("gut_symptom_10d", "value", CurrentId);

            if (placeholder == "1")
            {
                S10A4.IsChecked = true;
                S10B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                S10A4.IsChecked = false;
                S10B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_70", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                I10C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                I10C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_70", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    D10C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_1d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS1A4.IsChecked = true;
                OS1B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS1A4.IsChecked = false;
                OS1B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_71", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI1C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI1C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_71", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD1C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_2d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS2A4.IsChecked = true;
                OS2B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS2A4.IsChecked = false;
                OS2B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_72", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI2C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI2C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_72", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD2C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_3d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS3A4.IsChecked = true;
                OS3B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS3A4.IsChecked = false;
                OS3B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_73", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI3C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI3C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_73", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD3C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_4d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS4A4.IsChecked = true;
                OS4B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS4A4.IsChecked = false;
                OS4B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_74", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI4C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI4C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_74", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD4C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_5d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS5A4.IsChecked = true;
                OS5B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS5A4.IsChecked = false;
                OS5B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_75", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI5C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI5C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_75", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD5C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_6d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS6A4.IsChecked = true;
                OS6B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS6A4.IsChecked = false;
                OS6B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_76", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI6C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI6C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_76", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD6C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_7d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS7A4.IsChecked = true;
                OS7B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS7A4.IsChecked = false;
                OS7B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_77", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI7C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI7C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_77", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD7C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_8d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS8A4.IsChecked = true;
                OS8B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS8A4.IsChecked = false;
                OS8B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_78", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI8C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI8C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_78", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD8C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_9d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS9A4.IsChecked = true;
                OS9B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS9A4.IsChecked = false;
                OS9B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_79", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI9C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI9C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_79", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == (i+1).ToString())
                {
                    OD9C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("other_symptom_10d", "value", CurrentId);

            if (placeholder == "1")
            {
                OS10A4.IsChecked = true;
                OS10B4.IsChecked = false;
            }
            if (placeholder == "0")
            {
                OS10A4.IsChecked = false;
                OS10B4.IsChecked = true;
            }

            placeholder = Preferences.Get("intensity_80", "value", CurrentId);

            if (placeholder == "1" || placeholder == "2" || placeholder == "3" || placeholder == "4")
            {
                OI10C.SelectedIndex = Int32.Parse(placeholder) -1;
            }
            else
            {
                OI10C.SelectedIndex = -1;
            }

            placeholder = Preferences.Get("duration_80", "value", CurrentId);

            for (int i = 0; i < 32; i++)
            {
                if (placeholder == ((i+1)).ToString())
                {
                    OD10C.SelectedIndex = Int32.Parse(placeholder) -1;
                    break;
                }
            }

            placeholder = Preferences.Get("ssq", "value", CurrentId);

            if (placeholder == "1")
            {
                SLS1A.IsChecked = true;
                SLS1B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                SLS1A.IsChecked = false;
                SLS1B.IsChecked = true;
            }

            placeholder = Preferences.Get("sl_symptom_1", "value", CurrentId);

            if (placeholder == "1")
            {
                Sleep1A.IsChecked = true;
                Sleep1B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                Sleep1A.IsChecked = false;
                Sleep1B.IsChecked = true;
            }
            placeholder = Preferences.Get("sl_symptom_2", "value", CurrentId);

            if (placeholder == "1")
            {
                Sleep2A.IsChecked = true;
                Sleep2B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                Sleep2A.IsChecked = false;
                Sleep2B.IsChecked = true;
            }
            placeholder = Preferences.Get("sl_symptom_3", "value", CurrentId);

            if (placeholder == "1")
            {
                Sleep3A.IsChecked = true;
                Sleep3B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                Sleep3A.IsChecked = false;
                Sleep3B.IsChecked = true;
            }
            placeholder = Preferences.Get("sl_symptom_4", "value", CurrentId);

            if (placeholder == "1")
            {
                Sleep4A.IsChecked = true;
                Sleep4B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                Sleep4A.IsChecked = false;
                Sleep4B.IsChecked = true;
            }
            placeholder = Preferences.Get("sl_symptom_5", "value", CurrentId);

            if (placeholder == "1")
            {
                Sleep5A.IsChecked = true;
                Sleep5B.IsChecked = false;
            }
            if (placeholder == "0")
            {
                Sleep5A.IsChecked = false;
                Sleep5B.IsChecked = true;
            }


        }


        

        private void SLS1AFunction(object sender, EventArgs e)
        {
            Save_Settings("ssq", "1", CurrentId);
            SleepSymptom1.Text = CurrentItem.SleepSymptoms[0] + "?";
            SleepSymptom1.IsVisible = true;
            Sleep1A.IsVisible = true;
            Sleep1B.IsVisible = true;

            if (CurrentItem.SleepSymptoms.Length == 2)
            {
                SleepSymptom1.Text = CurrentItem.SleepSymptoms[0] + "?";
                SleepSymptom1.IsVisible = true;
                Sleep1A.IsVisible = true;
                Sleep1B.IsVisible = true;

                SleepSymptom2.Text = CurrentItem.SleepSymptoms[1] + "?";
                SleepSymptom2.IsVisible = true;
                Sleep2A.IsVisible = true;
                Sleep2B.IsVisible = true;
            }
            if (CurrentItem.SleepSymptoms.Length == 3)
            {
                SleepSymptom1.Text = CurrentItem.SleepSymptoms[0] + "?";
                SleepSymptom1.IsVisible = true;
                Sleep1A.IsVisible = true;
                Sleep1B.IsVisible = true;

                SleepSymptom2.Text = CurrentItem.SleepSymptoms[1] + "?";
                SleepSymptom2.IsVisible = true;
                Sleep2A.IsVisible = true;
                Sleep2B.IsVisible = true;

                SleepSymptom3.Text = CurrentItem.SleepSymptoms[2] + "?";
                SleepSymptom3.IsVisible = true;
                Sleep3A.IsVisible = true;
                Sleep3B.IsVisible = true;
            }
            if (CurrentItem.SleepSymptoms.Length == 4)
            {
                SleepSymptom1.Text = CurrentItem.SleepSymptoms[0] + "?";
                SleepSymptom1.IsVisible = true;
                Sleep1A.IsVisible = true;
                Sleep1B.IsVisible = true;

                SleepSymptom2.Text = CurrentItem.SleepSymptoms[1] + "?";
                SleepSymptom2.IsVisible = true;
                Sleep2A.IsVisible = true;
                Sleep2B.IsVisible = true;

                SleepSymptom3.Text = CurrentItem.SleepSymptoms[2] + "?";
                SleepSymptom3.IsVisible = true;
                Sleep3A.IsVisible = true;
                Sleep3B.IsVisible = true;

                SleepSymptom4.Text = CurrentItem.SleepSymptoms[3] + "?";
                SleepSymptom4.IsVisible = true;
                Sleep4A.IsVisible = true;
                Sleep4B.IsVisible = true;
            }
            if (CurrentItem.SleepSymptoms.Length == 5)
            {
                SleepSymptom1.Text = CurrentItem.SleepSymptoms[0] + "?";
                SleepSymptom1.IsVisible = true;
                Sleep1A.IsVisible = true;
                Sleep1B.IsVisible = true;

                SleepSymptom2.Text = CurrentItem.SleepSymptoms[1] + "?";
                SleepSymptom2.IsVisible = true;
                Sleep2A.IsVisible = true;
                Sleep2B.IsVisible = true;

                SleepSymptom3.Text = CurrentItem.SleepSymptoms[2] + "?";
                SleepSymptom3.IsVisible = true;
                Sleep3A.IsVisible = true;
                Sleep3B.IsVisible = true;

                SleepSymptom4.Text = CurrentItem.SleepSymptoms[3] + "?";
                SleepSymptom4.IsVisible = true;
                Sleep4A.IsVisible = true;
                Sleep4B.IsVisible = true;

                SleepSymptom5.Text = CurrentItem.SleepSymptoms[4] + "?";
                SleepSymptom5.IsVisible = true;
                Sleep5A.IsVisible = true;
                Sleep5B.IsVisible = true;
            }
        }

        private void Sleep1AFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_1", "1", CurrentId);
        }
        private void Sleep1BFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_1", "0", CurrentId);
        }

        private void Sleep2AFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_2", "1", CurrentId);
        }
        private void Sleep2BFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_2", "0", CurrentId);
        }

        private void Sleep3AFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_3", "1", CurrentId);
        }
        private void Sleep3BFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_3", "0", CurrentId);
        }

        private void Sleep4AFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_4", "1", CurrentId);
        }
        private void Sleep4BFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_4", "0", CurrentId);
        }

        private void Sleep5AFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_5", "1", CurrentId);
        }
        private void Sleep5BFunction(object sender, EventArgs e)
        {
            Save_Settings("sl_symptom_5", "0", CurrentId);
        }

        private void SLS1BFunction(object sender, EventArgs e)
        {
            Sleep1A.IsChecked = false;
            Sleep1B.IsChecked = false;
            Sleep2A.IsChecked = false;
            Sleep2B.IsChecked = false;
            Sleep3A.IsChecked = false;
            Sleep3B.IsChecked = false;
            Sleep4A.IsChecked = false;
            Sleep4B.IsChecked = false;
            Sleep5A.IsChecked = false;
            Sleep5B.IsChecked = false;
            Save_Settings("ssq", "0", CurrentId);
            Sleep1A.IsVisible = false;
            Sleep1B.IsVisible = false;
            Sleep2A.IsVisible = false;
            Sleep2B.IsVisible = false;
            Sleep3A.IsVisible = false;
            Sleep3B.IsVisible = false;
            Sleep4A.IsVisible = false;
            Sleep4B.IsVisible = false;
            Sleep5A.IsVisible = false;
            Sleep5B.IsVisible = false;
            SleepSymptom1.IsVisible = false;
            SleepSymptom2.IsVisible = false;
            SleepSymptom3.IsVisible = false;
            SleepSymptom4.IsVisible = false;
            SleepSymptom5.IsVisible = false;
        }

        private void S10A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10d", "1", CurrentId);
            I10C.IsVisible = true;
            I10C.ItemsSource = intensitylist;
            D10C.IsVisible = true;
            D10C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S10B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10d", "0", CurrentId);

            I10C.SelectedIndex = -1;
            D10C.SelectedIndex = -1;
            I10C.IsVisible = false;
            D10C.IsVisible = false;
        }
        private void S9A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9d", "1", CurrentId);
            I9C.IsVisible = true;
            I9C.ItemsSource = intensitylist;
            D9C.IsVisible = true;
            D9C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S9B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9d", "0", CurrentId);

            I9C.SelectedIndex = -1;
            D9C.SelectedIndex = -1;
            I9C.IsVisible = false;
            D9C.IsVisible = false;
        }
        private void S8A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8d", "1", CurrentId);
            I8C.IsVisible = true;
            I8C.ItemsSource = intensitylist;
            D8C.IsVisible = true;
            D8C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S8B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8d", "0", CurrentId);

            I8C.SelectedIndex = -1;
            D8C.SelectedIndex = -1;
            I8C.IsVisible = false;
            D8C.IsVisible = false;
        }
        private void S7A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7d", "1", CurrentId);
            I7C.IsVisible = true;
            I7C.ItemsSource = intensitylist;
            D7C.IsVisible = true;
            D7C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S7B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7d", "0", CurrentId);

            I7C.SelectedIndex = -1;
            D7C.SelectedIndex = -1;
            I7C.IsVisible = false;
            D7C.IsVisible = false;
        }
        private void S6A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6d", "1", CurrentId);
            I6C.IsVisible = true;
            I6C.ItemsSource = intensitylist;
            D6C.IsVisible = true;
            D6C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S6B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6d", "0", CurrentId);

            I6C.SelectedIndex = -1;
            D6C.SelectedIndex = -1;
            I6C.IsVisible = false;
            D6C.IsVisible = false;
        }
        private void S5A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5d", "1", CurrentId);
            I5C.IsVisible = true;
            I5C.ItemsSource = intensitylist;
            D5C.IsVisible = true;
            D5C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S5B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5d", "0", CurrentId);

            I5C.SelectedIndex = -1;
            D5C.SelectedIndex = -1;
            I5C.IsVisible = false;
            D5C.IsVisible = false;
        }
        private void S4A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4d", "1", CurrentId);
            I4C.IsVisible = true;
            I4C.ItemsSource = intensitylist;
            D4C.IsVisible = true;
            D4C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S4B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4d", "0", CurrentId);

            I4C.SelectedIndex = -1;
            D4C.SelectedIndex = -1;
            I4C.IsVisible = false;
            D4C.IsVisible = false;
        }
        private void S3A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3d", "1", CurrentId);
            I3C.IsVisible = true;
            I3C.ItemsSource = intensitylist;
            D3C.IsVisible = true;
            D3C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S3B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3d", "0", CurrentId);

            I3C.SelectedIndex = -1;
            D3C.SelectedIndex = -1;
            I3C.IsVisible = false;
            D3C.IsVisible = false;
        }
        private void S2A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2d", "1", CurrentId);
            I2C.IsVisible = true;
            I2C.ItemsSource = intensitylist;
            D2C.IsVisible = true;
            D2C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S2B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2d", "0", CurrentId);

            I2C.SelectedIndex = -1;
            D2C.SelectedIndex = -1;
            I2C.IsVisible = false;
            D2C.IsVisible = false;
        }
        private void S1A4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1d", "1", CurrentId);
            I1C.IsVisible = true;
            I1C.ItemsSource = intensitylist;
            D1C.IsVisible = true;
            D1C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S1B4Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1d", "0", CurrentId);

            I1C.SelectedIndex = -1;
            D1C.SelectedIndex = -1;
            I1C.IsVisible = false;
            D1C.IsVisible = false;
        }

        private void S10A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10c", "1", CurrentId);
            I10B.IsVisible = true;
            I10B.ItemsSource = intensitylist;
            D10B.IsVisible = true;
            D10B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S10B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10c", "0", CurrentId);

            I10B.SelectedIndex = -1;
            D10B.SelectedIndex = -1;
            I10B.IsVisible = false;
            D10B.IsVisible = false;
        }
        private void S9A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9c", "1", CurrentId);
            I9B.IsVisible = true;
            I9B.ItemsSource = intensitylist;
            D9B.IsVisible = true;
            D9B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S9B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9c", "0", CurrentId);

            I9B.SelectedIndex = -1;
            D9B.SelectedIndex = -1;
            I9B.IsVisible = false;
            D9B.IsVisible = false;
        }
        private void S8A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8c", "1", CurrentId);
            I8B.IsVisible = true;
            I8B.ItemsSource = intensitylist;
            D8B.IsVisible = true;
            D8B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S8B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8c", "0", CurrentId);

            I8B.SelectedIndex = -1;
            D8B.SelectedIndex = -1;
            I8B.IsVisible = false;
            D8B.IsVisible = false;
        }
        private void S7A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7c", "1", CurrentId);
            I7B.IsVisible = true;
            I7B.ItemsSource = intensitylist;
            D7B.IsVisible = true;
            D7B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S7B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7c", "0", CurrentId);

            I7B.SelectedIndex = -1;
            D7B.SelectedIndex = -1;
            I7B.IsVisible = false;
            D7B.IsVisible = false;
        }
        private void S6A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6c", "1", CurrentId);
            I6B.IsVisible = true;
            I6B.ItemsSource = intensitylist;
            D6B.IsVisible = true;
            D6B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S6B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6c", "0", CurrentId);

            I6B.SelectedIndex = -1;
            D6B.SelectedIndex = -1;
            I6B.IsVisible = false;
            D6B.IsVisible = false;
        }
        private void S5A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5c", "1", CurrentId);
            I5B.IsVisible = true;
            I5B.ItemsSource = intensitylist;
            D5B.IsVisible = true;
            D5B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S5B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5c", "0", CurrentId);

            I5B.SelectedIndex = -1;
            D5B.SelectedIndex = -1;
            I5B.IsVisible = false;
            D5B.IsVisible = false;
        }
        private void S4A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4c", "1", CurrentId);
            I4B.IsVisible = true;
            I4B.ItemsSource = intensitylist;
            D4B.IsVisible = true;
            D4B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S4B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4c", "0", CurrentId);

            I4B.SelectedIndex = -1;
            D4B.SelectedIndex = -1;
            I4B.IsVisible = false;
            D4B.IsVisible = false;
        }
        private void S3A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3c", "1", CurrentId);
            I3B.IsVisible = true;
            I3B.ItemsSource = intensitylist;
            D3B.IsVisible = true;
            D3B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S3B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3c", "0", CurrentId);

            I3B.SelectedIndex = -1;
            D3B.SelectedIndex = -1;
            I3B.IsVisible = false;
            D3B.IsVisible = false;
        }
        private void S2A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2c", "1", CurrentId);
            I2B.IsVisible = true;
            I2B.ItemsSource = intensitylist;
            D2B.IsVisible = true;
            D2B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S2B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2c", "0", CurrentId);

            I2B.SelectedIndex = -1;
            D2B.SelectedIndex = -1;
            I2B.IsVisible = false;
            D2B.IsVisible = false;
        }
        private void S1A3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1c", "1", CurrentId);
            I1B.IsVisible = true;
            I1B.ItemsSource = intensitylist;
            D1B.IsVisible = true;
            D1B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S1B3Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1c", "0", CurrentId);

            D1B.SelectedIndex = -1;
            I1B.SelectedIndex = -1;
            I1B.IsVisible = false;
            D1B.IsVisible = false;
        }
        private void S10A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10b", "1", CurrentId);
            I10A.IsVisible = true;
            I10A.ItemsSource = intensitylist;
            D10A.IsVisible = true;
            D10A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S10B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10b", "0", CurrentId);

            I10A.SelectedIndex = -1;
            D10A.SelectedIndex = -1;
            I10A.IsVisible = false;
            D10A.IsVisible = false;
        }
        private void S9A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9b", "1", CurrentId);
            I9A.IsVisible = true;
            I9A.ItemsSource = intensitylist;
            D9A.IsVisible = true;
            D9A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S9B2Function(object sender, EventArgs e)
        {

            I9A.SelectedIndex = -1;
            D9A.SelectedIndex = -1;
            Save_Settings("gut_symptom_9b", "0", CurrentId);
            I9A.IsVisible = false;
            D9A.IsVisible = false;
        }
        private void S8A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8b", "1", CurrentId);
            I8A.IsVisible = true;
            I8A.ItemsSource = intensitylist;
            D8A.IsVisible = true;
            D8A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S8B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8b", "0", CurrentId);

            I8A.SelectedIndex = -1;
            D8A.SelectedIndex = -1;
            I8A.IsVisible = false;
            D8A.IsVisible = false;
        }
        private void S7A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7b", "1", CurrentId);
            I7A.IsVisible = true;
            I7A.ItemsSource = intensitylist;
            D7A.IsVisible = true;
            D7A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S7B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7b", "0", CurrentId);

            I7A.SelectedIndex = -1;
            D7A.SelectedIndex = -1;
            I7A.IsVisible = false;
            D7A.IsVisible = false;
        }
        private void S6A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6b", "1", CurrentId);
            I6A.IsVisible = true;
            I6A.ItemsSource = intensitylist;
            D6A.IsVisible = true;
            D6A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S6B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6b", "0", CurrentId);

            I6A.SelectedIndex = -1;
            D6A.SelectedIndex = -1;
            I6A.IsVisible = false;
            D6A.IsVisible = false;
        }
        private void S5A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5b", "1", CurrentId);
            I5A.IsVisible = true;
            I5A.ItemsSource = intensitylist;
            D5A.IsVisible = true;
            D5A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S5B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5b", "0", CurrentId);

            I5A.SelectedIndex = -1;
            D5A.SelectedIndex = -1;
            I5A.IsVisible = false;
            D5A.IsVisible = false;
        }
        private void S4A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4b", "1", CurrentId);
            I4A.IsVisible = true;
            I4A.ItemsSource = intensitylist;
            D4A.IsVisible = true;
            D4A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S4B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4b", "0", CurrentId);

            I4A.SelectedIndex = -1;
            D4A.SelectedIndex = -1;
            I4A.IsVisible = false;
            D4A.IsVisible = false;
        }
        private void S3A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3b", "1", CurrentId);
            I3A.IsVisible = true;
            I3A.ItemsSource = intensitylist;
            D3A.IsVisible = true;
            D3A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S3B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3b", "0", CurrentId);

            I3A.SelectedIndex = -1;
            D3A.SelectedIndex = -1;
            I3A.IsVisible = false;
            D3A.IsVisible = false;
        }
        private void S2A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2b", "1", CurrentId);
            I2A.IsVisible = true;
            I2A.ItemsSource = intensitylist;
            D2A.IsVisible = true;
            D2A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S2B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2b", "0", CurrentId);

            I2A.SelectedIndex = -1;
            D2A.SelectedIndex = -1;
            I2A.IsVisible = false;
            D2A.IsVisible = false;
        }
        private void S1A2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1b", "1", CurrentId);
            I1A.IsVisible = true;
            I1A.ItemsSource = intensitylist;
            D1A.IsVisible = true;
            D1A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S1B2Function(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1b", "0", CurrentId);

            I1A.SelectedIndex = -1;
            D1A.SelectedIndex = -1;
            I1A.IsVisible = false;
            D1A.IsVisible = false;
        }

        private void S10AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10a", "1", CurrentId);
            I10.IsVisible = true;
            I10.ItemsSource = intensitylist;
            D10.IsVisible = true;
            D10.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S10BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_10a", "0", CurrentId);

            I10.SelectedIndex = -1;
            D10.SelectedIndex = -1;
            I10.IsVisible = false;
            D10.IsVisible = false;
        }
        private void S9AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9a", "1", CurrentId);
            I9.IsVisible = true;
            I9.ItemsSource = intensitylist;
            D9.IsVisible = true;
            D9.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S9BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_9a", "0", CurrentId);

            I9.SelectedIndex = -1;
            D9.SelectedIndex = -1;
            I9.IsVisible = false;
            D9.IsVisible = false;
        }
        private void S8AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8a", "1", CurrentId);
            I8.IsVisible = true;
            I8.ItemsSource = intensitylist;
            D8.IsVisible = true;
            D8.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S8BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_8a", "0", CurrentId);

            I8.SelectedIndex = -1;
            D8.SelectedIndex = -1;
            I8.IsVisible = false;
            D8.IsVisible = false;
        }
        private void S7AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7a", "1", CurrentId);
            I7.IsVisible = true;
            I7.ItemsSource = intensitylist;
            D7.IsVisible = true;
            D7.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S7BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_7a", "0", CurrentId);

            I7.SelectedIndex = -1;
            D7.SelectedIndex = -1;
            I7.IsVisible = false;
            D7.IsVisible = false;
        }
        private void S6AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6a", "1", CurrentId);
            I6.IsVisible = true;
            I6.ItemsSource = intensitylist;
            D6.IsVisible = true;
            D6.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S6BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_6a", "0", CurrentId);

            I6.SelectedIndex = -1;
            D6.SelectedIndex = -1;
            I6.IsVisible = false;
            D6.IsVisible = false;
        }
        private void S5AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5a", "1", CurrentId);
            I5.IsVisible = true;
            I5.ItemsSource = intensitylist;
            D5.IsVisible = true;
            D5.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S5BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_5a", "0", CurrentId);

            I5.SelectedIndex = -1;
            D5.SelectedIndex = -1;
            I5.IsVisible = false;
            D5.IsVisible = false;
        }
        private void S4AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4a", "1", CurrentId);
            I4.IsVisible = true;
            I4.ItemsSource = intensitylist;
            D4.IsVisible = true;
            D4.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S4BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_4a", "0", CurrentId);

            I4.SelectedIndex = -1;
            D4.SelectedIndex = -1;
            I4.IsVisible = false;
            D4.IsVisible = false;
        }
        private void S3AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3a", "1", CurrentId);
            I3.IsVisible = true;
            I3.ItemsSource = intensitylist;
            D3.IsVisible = true;
            D3.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S3BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_3a", "0", CurrentId);

            I3.SelectedIndex = -1;
            D3.SelectedIndex = -1;
            I3.IsVisible = false;
            D3.IsVisible = false;
        }
        private void S2AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2a", "1", CurrentId);
            I2.IsVisible = true;
            I2.ItemsSource = intensitylist;
            D2.IsVisible = true;
            D2.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S2BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_2a", "0", CurrentId);

            I2.SelectedIndex = -1;
            D2.SelectedIndex = -1;
            I2.IsVisible = false;
            D2.IsVisible = false;
        }
        private void S1AFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1a", "1", CurrentId);
            I1.IsVisible = true;
            I1.ItemsSource = intensitylist;
            D1.IsVisible = true;
            D1.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void S1BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_1a", "0", CurrentId);
            I1.SelectedIndex = -1;
            D1.SelectedIndex = -1;
            I1.IsVisible = false;
            D1.IsVisible = false;
            
        }



        private void RB1AFunction(object sender, EventArgs e)
        {
            
            Save_Settings("gut_symptom_diary_q1", "1", CurrentId);
            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (CurrentItem.Frequency == "1")
            {
                Symptoms1.IsVisible = true;


                if (CurrentItem.Symptoms.Length == 1)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 2)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 3)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 4)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 5)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 6)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;

                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 7)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;

                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;

                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 8)
                {

                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;

                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;

                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;

                    Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 9)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;

                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;

                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;

                    Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;

                    Symptom9.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                if (CurrentItem.Symptoms.Length == 10)
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;

                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;

                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;

                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;

                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;

                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;

                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;

                    Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;

                    Symptom9.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;

                    Symptom10.Text = CurrentItem.Symptoms[9] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }




                if (CurrentItem.OtherSymptoms.Length == 1)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 2)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 3)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 4)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 5)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 6)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;

                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 7)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;

                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;

                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 8)
                {

                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;

                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;

                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;

                    OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 9)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;

                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;

                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;

                    OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;

                    OSymptom9.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                if (CurrentItem.OtherSymptoms.Length == 10)
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;

                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;

                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;

                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;

                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;

                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;

                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;

                    OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;

                    OSymptom9.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;

                    OSymptom10.Text = CurrentItem.OtherSymptoms[9] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }


                }
                else
            {
                FrequencyLabel1.IsVisible = true;
                FrequencyLabel1.Text = DiaryFrequency[0];
                RB2A.IsVisible = true;
                RB2B.IsVisible = true;
            }
        }
        private void OS10A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10d", "1", CurrentId);
            OI10C.IsVisible = true;
            OI10C.ItemsSource = intensitylist;
            OD10C.IsVisible = true;
            OD10C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS10B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10d", "0", CurrentId);

            OI10C.SelectedIndex = -1;
            OD10C.SelectedIndex = -1;
            OI10C.IsVisible = false;
            OD10C.IsVisible = false;
        }
        private void OS9A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9d", "1", CurrentId);
            OI9C.IsVisible = true;
            OI9C.ItemsSource = intensitylist;
            OD9C.IsVisible = true;
            OD9C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS9B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9d", "0", CurrentId);

            OI9C.SelectedIndex = -1;
            OD9C.SelectedIndex = -1;
            OI9C.IsVisible = false;
            OD9C.IsVisible = false;
        }
        private void OS8A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8d", "1", CurrentId);
            OI8C.IsVisible = true;
            OI8C.ItemsSource = intensitylist;
            OD8C.IsVisible = true;
            OD8C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS8B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8d", "0", CurrentId);

            OI8C.SelectedIndex = -1;
            OD8C.SelectedIndex = -1;
            OI8C.IsVisible = false;
            OD8C.IsVisible = false;
        }
        private void OS7A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7d", "1", CurrentId);
            OI7C.IsVisible = true;
            OI7C.ItemsSource = intensitylist;
            OD7C.IsVisible = true;
            OD7C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS7B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7d", "0", CurrentId);

            OI7C.SelectedIndex = -1;
            OD7C.SelectedIndex = -1;
            OI7C.IsVisible = false;
            OD7C.IsVisible = false;
        }
        private void OS6A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6d", "1", CurrentId);
            OI6C.IsVisible = true;
            OI6C.ItemsSource = intensitylist;
            OD6C.IsVisible = true;
            OD6C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS6B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6d", "0", CurrentId);

            OI6C.SelectedIndex = -1;
            OD6C.SelectedIndex = -1;
            OI6C.IsVisible = false;
            OD6C.IsVisible = false;
        }
        private void OS5A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5d", "1", CurrentId);
            OI5C.IsVisible = true;
            OI5C.ItemsSource = intensitylist;
            OD5C.IsVisible = true;
            OD5C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS5B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5d", "0", CurrentId);

            OI5C.SelectedIndex = -1;
            OD5C.SelectedIndex = -1;
            OI5C.IsVisible = false;
            OD5C.IsVisible = false;
        }
        private void OS4A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4d", "1", CurrentId);
            OI4C.IsVisible = true;
            OI4C.ItemsSource = intensitylist;
            OD4C.IsVisible = true;
            OD4C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS4B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4d", "0", CurrentId);

            OI4C.SelectedIndex = -1;
            OD4C.SelectedIndex = -1;
            OI4C.IsVisible = false;
            OD4C.IsVisible = false;
        }
        private void OS3A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3d", "1", CurrentId);
            OI3C.IsVisible = true;
            OI3C.ItemsSource = intensitylist;
            OD3C.IsVisible = true;
            OD3C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS3B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3d", "0", CurrentId);

            OI3C.SelectedIndex = -1;
            OD3C.SelectedIndex = -1;
            OI3C.IsVisible = false;
            OD3C.IsVisible = false;
        }
        private void OS2A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2d", "1", CurrentId);
            OI2C.IsVisible = true;
            OI2C.ItemsSource = intensitylist;
            OD2C.IsVisible = true;
            OD2C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS2B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2d", "0", CurrentId);

            OI2C.SelectedIndex = -1;
            OD2C.SelectedIndex = -1;
            OI2C.IsVisible = false;
            OD2C.IsVisible = false;
        }
        private void OS1A4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1d", "1", CurrentId);
            OI1C.IsVisible = true;
            OI1C.ItemsSource = intensitylist;
            OD1C.IsVisible = true;
            OD1C.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS1B4Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1d", "0", CurrentId);

            OI1C.SelectedIndex = -1;
            OD1C.SelectedIndex = -1;
            OI1C.IsVisible = false;
            OD1C.IsVisible = false;
        }

        private void OS10A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10c", "1", CurrentId);
            OI10B.IsVisible = true;
            OI10B.ItemsSource = intensitylist;
            OD10B.IsVisible = true;
            OD10B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS10B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10c", "0", CurrentId);

            OI10B.SelectedIndex = -1;
            OD10B.SelectedIndex = -1;
            OI10B.IsVisible = false;
            OD10B.IsVisible = false;
        }
        private void OS9A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9c", "1", CurrentId);
            OI9B.IsVisible = true;
            OI9B.ItemsSource = intensitylist;
            OD9B.IsVisible = true;
            OD9B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS9B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9c", "0", CurrentId);

            OI9B.SelectedIndex = -1;
            OD9B.SelectedIndex = -1;
            OI9B.IsVisible = false;
            OD9B.IsVisible = false;
        }
        private void OS8A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8c", "1", CurrentId);
            OI8B.IsVisible = true;
            OI8B.ItemsSource = intensitylist;
            OD8B.IsVisible = true;
            OD8B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS8B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8c", "0", CurrentId);

            OI8B.SelectedIndex = -1;
            OD8B.SelectedIndex = -1;
            OI8B.IsVisible = false;
            OD8B.IsVisible = false;
        }
        private void OS7A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7c", "1", CurrentId);
            OI7B.IsVisible = true;
            OI7B.ItemsSource = intensitylist;
            OD7B.IsVisible = true;
            OD7B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS7B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7c", "0", CurrentId);

            OI7B.SelectedIndex = -1;
            OD7B.SelectedIndex = -1;
            OI7B.IsVisible = false;
            OD7B.IsVisible = false;
        }
        private void OS6A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6c", "1", CurrentId);
            OI6B.IsVisible = true;
            OI6B.ItemsSource = intensitylist;
            OD6B.IsVisible = true;
            OD6B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS6B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6c", "0", CurrentId);

            OI6B.SelectedIndex = -1;
            OD6B.SelectedIndex = -1;
            OI6B.IsVisible = false;
            OD6B.IsVisible = false;
        }
        private void OS5A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5c", "1", CurrentId);
            OI5B.IsVisible = true;
            OI5B.ItemsSource = intensitylist;
            OD5B.IsVisible = true;
            OD5B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS5B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5c", "0", CurrentId);

            OI5B.SelectedIndex = -1;
            OD5B.SelectedIndex = -1;
            OI5B.IsVisible = false;
            OD5B.IsVisible = false;
        }
        private void OS4A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4c", "1", CurrentId);
            OI4B.IsVisible = true;
            OI4B.ItemsSource = intensitylist;
            OD4B.IsVisible = true;
            OD4B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS4B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4c", "0", CurrentId);

            OI4B.SelectedIndex = -1;
            OD4B.SelectedIndex = -1;
            OI4B.IsVisible = false;
            OD4B.IsVisible = false;
        }
        private void OS3A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3c", "1", CurrentId);
            OI3B.IsVisible = true;
            OI3B.ItemsSource = intensitylist;
            OD3B.IsVisible = true;
            OD3B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS3B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3c", "0", CurrentId);

            OI3B.SelectedIndex = -1;
            OD3B.SelectedIndex = -1;
            OI3B.IsVisible = false;
            OD3B.IsVisible = false;
        }
        private void OS2A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2c", "1", CurrentId);
            OI2B.IsVisible = true;
            OI2B.ItemsSource = intensitylist;
            OD2B.IsVisible = true;
            OD2B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS2B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2c", "0", CurrentId);

            OI2B.SelectedIndex = -1;
            OD2B.SelectedIndex = -1;
            OI2B.IsVisible = false;
            OD2B.IsVisible = false;
        }
        private void OS1A3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1c", "1", CurrentId);
            OI1B.IsVisible = true;
            OI1B.ItemsSource = intensitylist;
            OD1B.IsVisible = true;
            OD1B.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS1B3Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1c", "0", CurrentId);

            OI1B.SelectedIndex = -1;
            OD1B.SelectedIndex = -1;
            OI1B.IsVisible = false;
            OD1B.IsVisible = false;
        }
        private void OS10A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10b", "1", CurrentId);
            OI10A.IsVisible = true;
            OI10A.ItemsSource = intensitylist;
            OD10A.IsVisible = true;
            OD10A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS10B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10b", "0", CurrentId);

            OI10A.SelectedIndex = -1;
            OD10A.SelectedIndex = -1;
            OI10A.IsVisible = false;
            OD10A.IsVisible = false;
        }
        private void OS9A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9b", "1", CurrentId);
            OI9A.IsVisible = true;
            OI9A.ItemsSource = intensitylist;
            OD9A.IsVisible = true;
            OD9A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS9B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9b", "0", CurrentId);

            OI9A.SelectedIndex = -1;
            OD9A.SelectedIndex = -1;
            OI9A.IsVisible = false;
            OD9A.IsVisible = false;
        }
        private void OS8A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8b", "1", CurrentId);
            OI8A.IsVisible = true;
            OI8A.ItemsSource = intensitylist;
            OD8A.IsVisible = true;
            OD8A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS8B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8b", "0", CurrentId);

            OI8A.SelectedIndex = -1;
            OD8A.SelectedIndex = -1;
            OI8A.IsVisible = false;
            OD8A.IsVisible = false;
        }
        private void OS7A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7b", "1", CurrentId);
            OI7A.IsVisible = true;
            OI7A.ItemsSource = intensitylist;
            OD7A.IsVisible = true;
            OD7A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS7B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7b", "0", CurrentId);

            OI7A.SelectedIndex = -1;
            OD7A.SelectedIndex = -1;
            OI7A.IsVisible = false;
            OD7A.IsVisible = false;
        }
        private void OS6A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6b", "1", CurrentId);
            OI6A.IsVisible = true;
            OI6A.ItemsSource = intensitylist;
            OD6A.IsVisible = true;
            OD6A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS6B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6b", "0", CurrentId);

            OI6A.SelectedIndex = -1;
            OD6A.SelectedIndex = -1;
            OI6A.IsVisible = false;
            OD6A.IsVisible = false;
        }
        private void OS5A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5b", "1", CurrentId);
            OI5A.IsVisible = true;
            OI5A.ItemsSource = intensitylist;
            OD5A.IsVisible = true;
            OD5A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS5B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5b", "0", CurrentId);

            OI5A.SelectedIndex = -1;
            OD5A.SelectedIndex = -1;
            OI5A.IsVisible = false;
            OD5A.IsVisible = false;
        }
        private void OS4A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4b", "1", CurrentId);
            OI4A.IsVisible = true;
            OI4A.ItemsSource = intensitylist;
            OD4A.IsVisible = true;
            OD4A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS4B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4b", "0", CurrentId);

            OI4A.SelectedIndex = -1;
            OD4A.SelectedIndex = -1;
            OI4A.IsVisible = false;
            OD4A.IsVisible = false;
        }
        private void OS3A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3b", "1", CurrentId);
            OI3A.IsVisible = true;
            OI3A.ItemsSource = intensitylist;
            OD3A.IsVisible = true;
            OD3A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS3B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3b", "0", CurrentId);

            OI3A.SelectedIndex = -1;
            OD3A.SelectedIndex = -1;
            OI3A.IsVisible = false;
            OD3A.IsVisible = false;
        }
        private void OS2A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2b", "1", CurrentId);
            OI2A.IsVisible = true;
            OI2A.ItemsSource = intensitylist;
            OD2A.IsVisible = true;
            OD2A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS2B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2b", "0", CurrentId);

            OI2A.SelectedIndex = -1;
            OD2A.SelectedIndex = -1;
            OI2A.IsVisible = false;
            OD2A.IsVisible = false;
        }
        private void OS1A2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1b", "1", CurrentId);
            OI1A.IsVisible = true;
            OI1A.ItemsSource = intensitylist;
            OD1A.IsVisible = true;
            OD1A.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS1B2Function(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1b", "0", CurrentId);

            OI1A.SelectedIndex = -1;
            OD1A.SelectedIndex = -1;
            OI1A.IsVisible = false;
            OD1A.IsVisible = false;
        }

        private void OS10AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10a", "1", CurrentId);
            OI10.IsVisible = true;
            OI10.ItemsSource = intensitylist;
            OD10.IsVisible = true;
            OD10.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS10BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_10a", "0", CurrentId);

            OI10.SelectedIndex = -1;
            OD10.SelectedIndex = -1;
            OI10.IsVisible = false;
            OD10.IsVisible = false;
        }
        private void OS9AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9a", "1", CurrentId);
            OI9.IsVisible = true;
            OI9.ItemsSource = intensitylist;
            OD9.IsVisible = true;
            OD9.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS9BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_9a", "0", CurrentId);

            OI9.SelectedIndex = -1;
            OD9.SelectedIndex = -1;
            OI9.IsVisible = false;
            OD9.IsVisible = false;
        }
        private void OS8AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8a", "1", CurrentId);
            OI8.IsVisible = true;
            OI8.ItemsSource = intensitylist;
            OD8.IsVisible = true;
            OD8.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS8BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_8a", "0", CurrentId);

            OI8.SelectedIndex = -1;
            OD8.SelectedIndex = -1;
            OI8.IsVisible = false;
            OD8.IsVisible = false;
        }
        private void OS7AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7a", "1", CurrentId);
            OI7.IsVisible = true;
            OI7.ItemsSource = intensitylist;
            OD7.IsVisible = true;
            OD7.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS7BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_7a", "0", CurrentId);

            OI7.SelectedIndex = -1;
            OD7.SelectedIndex = -1;
            OI7.IsVisible = false;
            OD7.IsVisible = false;
        }
        private void OS6AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6a", "1", CurrentId);
            OI6.IsVisible = true;
            OI6.ItemsSource = intensitylist;
            OD6.IsVisible = true;
            OD6.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS6BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_6a", "0", CurrentId);

            OI6.SelectedIndex = -1;
            OD6.SelectedIndex = -1;
            OI6.IsVisible = false;
            OD6.IsVisible = false;
        }
        private void OS5AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5a", "1", CurrentId);
            OI5.IsVisible = true;
            OI5.ItemsSource = intensitylist;
            OD5.IsVisible = true;
            OD5.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS5BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_5a", "0", CurrentId);

            OI5.SelectedIndex = -1;
            OD5.SelectedIndex = -1;
            OI5.IsVisible = false;
            OD5.IsVisible = false;
        }
        private void OS4AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4a", "1", CurrentId);
            OI4.IsVisible = true;
            OI4.ItemsSource = intensitylist;
            OD4.IsVisible = true;
            OD4.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS4BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_4a", "0", CurrentId);

            OI4.SelectedIndex = -1;
            OD4.SelectedIndex = -1;
            OI4.IsVisible = false;
            OD4.IsVisible = false;
        }
        private void OS3AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3a", "1", CurrentId);
            OI3.IsVisible = true;
            OI3.ItemsSource = intensitylist;
            OD3.IsVisible = true;
            OD3.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS3BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_3a", "0", CurrentId);

            OI3.SelectedIndex = -1;
            OD3.SelectedIndex = -1;
            OI3.IsVisible = false;
            OD3.IsVisible = false;
        }
        private void OS2AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2a", "1", CurrentId);
            OI2.IsVisible = true;
            OI2.ItemsSource = intensitylist;
            OD2.IsVisible = true;
            OD2.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS2BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_2a", "0", CurrentId);

            OI2.SelectedIndex = -1;
            OD2.SelectedIndex = -1;
            OI2.IsVisible = false;
            OD2.IsVisible = false;
        }
        private void OS1AFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1a", "1", CurrentId);
            OI1.IsVisible = true;
            OI1.ItemsSource = intensitylist;
            OD1.IsVisible = true;
            OD1.ItemsSource = DurationAmount(FrequencyToInt(CurrentItem.Frequency));
        }
        private void OS1BFunction(object sender, EventArgs e)
        {
            Save_Settings("other_symptom_1a", "0", CurrentId);

            OI1.SelectedIndex = -1;
            OD1.SelectedIndex = -1;
            OI1.IsVisible = false;
            OD1.IsVisible = false;
        }



        private void RB1BFunction(object sender, EventArgs e)
        {
            Save_Settings("gut_symptom_diary_q1", "0", CurrentId);

            RB2BFunction(sender, e);
            RB2B2Function(sender, e);
            RB2B3Function(sender, e);
            RB2B4Function(sender, e);


            RB2A4.IsChecked = false;
            RB2B4.IsChecked = false;
            RB2A3.IsChecked = false;
            RB2B3.IsChecked = false;
            RB2A2.IsChecked = false;
            RB2B2.IsChecked = false;
            RB2A.IsChecked = false;
            RB2B.IsChecked = false;

            RB2BFunction(sender, e);
            RB2B2Function(sender, e);
            RB2B3Function(sender, e);
            RB2B4Function(sender, e);








            RB2A.IsVisible = false;
            RB2B.IsVisible = false;
            RB2A2.IsVisible = false;
            RB2B2.IsVisible = false;
            RB2A3.IsVisible = false;
            RB2B3.IsVisible = false;
            RB2A4.IsVisible = false;
            RB2B4.IsVisible = false;

            FrequencyLabel1.IsVisible = false;
            FrequencyLabel2.IsVisible = false;
            FrequencyLabel3.IsVisible = false;
            FrequencyLabel4.IsVisible = false;


        }



        private void RB2AFunction(object sender, EventArgs e)
        {
            Save_Settings("frequency_1", "1", CurrentId);
            Symptoms1.IsVisible = true;


            if (CurrentItem.Symptoms.Length == 1)
            {
                
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

            }
            if (CurrentItem.Symptoms.Length == 2)
            {
                
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 3)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 4)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 5)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 6)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            
            if (CurrentItem.Symptoms.Length == 7)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 8)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                
                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else
                {
                    Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 9)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1.IsVisible = true;
                    S1A.IsVisible = true;
                    S1B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2.IsVisible = true;
                    S2A.IsVisible = true;
                    S2B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3.IsVisible = true;
                    S3A.IsVisible = true;
                    S3B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4.IsVisible = true;
                    S4A.IsVisible = true;
                    S4B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5.IsVisible = true;
                    S5A.IsVisible = true;
                    S5B.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6.IsVisible = true;
                    S6A.IsVisible = true;
                    S6B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else if (S7A.IsVisible)
                {
                    Symptom8.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }
                else
                {
                    Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7.IsVisible = true;
                    S7A.IsVisible = true;
                    S7B.IsVisible = true;
                }


                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else if (S7A.IsVisible && S8A.IsVisible)
                {
                    Symptom9.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
                else
                {
                    Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8.IsVisible = true;
                    S8A.IsVisible = true;
                    S8B.IsVisible = true;
                }

                
                if (S7A.IsVisible && S8A.IsVisible && S9A.IsVisible)
                {
                    Symptom10.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom10.IsVisible = true;
                    S10A.IsVisible = true;
                    S10B.IsVisible = true;
                }
                else
                {
                    Symptom9.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9.IsVisible = true;
                    S9A.IsVisible = true;
                    S9B.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 10)
            {
                Symptom1.Text = CurrentItem.Symptoms[0] + "?";
                Symptom1.IsVisible = true;
                S1A.IsVisible = true;
                S1B.IsVisible = true;

                Symptom2.Text = CurrentItem.Symptoms[1] + "?";
                Symptom2.IsVisible = true;
                S2A.IsVisible = true;
                S2B.IsVisible = true;

                Symptom3.Text = CurrentItem.Symptoms[2] + "?";
                Symptom3.IsVisible = true;
                S3A.IsVisible = true;
                S3B.IsVisible = true;

                Symptom4.Text = CurrentItem.Symptoms[3] + "?";
                Symptom4.IsVisible = true;
                S4A.IsVisible = true;
                S4B.IsVisible = true;

                Symptom5.Text = CurrentItem.Symptoms[4] + "?";
                Symptom5.IsVisible = true;
                S5A.IsVisible = true;
                S5B.IsVisible = true;

                Symptom6.Text = CurrentItem.Symptoms[5] + "?";
                Symptom6.IsVisible = true;
                S6A.IsVisible = true;
                S6B.IsVisible = true;

                Symptom7.Text = CurrentItem.Symptoms[6] + "?";
                Symptom7.IsVisible = true;
                S7A.IsVisible = true;
                S7B.IsVisible = true;

                Symptom8.Text = CurrentItem.Symptoms[7] + "?";
                Symptom8.IsVisible = true;
                S8A.IsVisible = true;
                S8B.IsVisible = true;

                Symptom9.Text = CurrentItem.Symptoms[8] + "?";
                Symptom9.IsVisible = true;
                S9A.IsVisible = true;
                S9B.IsVisible = true;

                Symptom10.Text = CurrentItem.Symptoms[9] + "?";
                Symptom10.IsVisible = true;
                S10A.IsVisible = true;
                S10B.IsVisible = true;
            }

            if (CurrentItem.OtherSymptoms.Length == 1)
            {
                
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

            }
            if (CurrentItem.OtherSymptoms.Length == 2)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 3)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 4)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 5)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 6)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }
            }

            if (CurrentItem.OtherSymptoms.Length == 7)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }

                
                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 8)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }

                
                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 9)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1.IsVisible = true;
                    OS1A.IsVisible = true;
                    OS1B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2.IsVisible = true;
                    OS2A.IsVisible = true;
                    OS2B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3.IsVisible = true;
                    OS3A.IsVisible = true;
                    OS3B.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4.IsVisible = true;
                    OS4A.IsVisible = true;
                    OS4B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible)
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }
                else if (OS5A.IsVisible)
                {
                    OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6.IsVisible = true;
                    OS6A.IsVisible = true;
                    OS6B.IsVisible = true;
                }
                else
                {
                    OSymptom5.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5.IsVisible = true;
                    OS5A.IsVisible = true;
                    OS5B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible)
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }
                else
                {
                    OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7.IsVisible = true;
                    OS7A.IsVisible = true;
                    OS7B.IsVisible = true;
                }


                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible)
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
                else
                {
                    OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8.IsVisible = true;
                    OS8A.IsVisible = true;
                    OS8B.IsVisible = true;
                }

                
                if (OS5A.IsVisible && OS6A.IsVisible && OS7A.IsVisible && OS8A.IsVisible && OS9A.IsVisible)
                {
                    OSymptom10.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom10.IsVisible = true;
                    OS10A.IsVisible = true;
                    OS10B.IsVisible = true;
                }
                else
                {
                    OSymptom9.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9.IsVisible = true;
                    OS9A.IsVisible = true;
                    OS9B.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 10)
            {
                OSymptom1.Text = CurrentItem.OtherSymptoms[0] + "?";
                OSymptom1.IsVisible = true;
                OS1A.IsVisible = true;
                OS1B.IsVisible = true;

                OSymptom2.Text = CurrentItem.OtherSymptoms[1] + "?";
                OSymptom2.IsVisible = true;
                OS2A.IsVisible = true;
                OS2B.IsVisible = true;

                OSymptom3.Text = CurrentItem.OtherSymptoms[2] + "?";
                OSymptom3.IsVisible = true;
                OS3A.IsVisible = true;
                OS3B.IsVisible = true;

                OSymptom4.Text = CurrentItem.OtherSymptoms[3] + "?";
                OSymptom4.IsVisible = true;
                OS4A.IsVisible = true;
                OS4B.IsVisible = true;

                OSymptom5.Text = CurrentItem.OtherSymptoms[4] + "?";
                OSymptom5.IsVisible = true;
                OS5A.IsVisible = true;
                OS5B.IsVisible = true;

                OSymptom6.Text = CurrentItem.OtherSymptoms[5] + "?";
                OSymptom6.IsVisible = true;
                OS6A.IsVisible = true;
                OS6B.IsVisible = true;

                OSymptom7.Text = CurrentItem.OtherSymptoms[6] + "?";
                OSymptom7.IsVisible = true;
                OS7A.IsVisible = true;
                OS7B.IsVisible = true;

                OSymptom8.Text = CurrentItem.OtherSymptoms[7] + "?";
                OSymptom8.IsVisible = true;
                OS8A.IsVisible = true;
                OS8B.IsVisible = true;

                OSymptom9.Text = CurrentItem.OtherSymptoms[8] + "?";
                OSymptom9.IsVisible = true;
                OS9A.IsVisible = true;
                OS9B.IsVisible = true;

                OSymptom10.Text = CurrentItem.OtherSymptoms[9] + "?";
                OSymptom10.IsVisible = true;
                OS10A.IsVisible = true;
                OS10B.IsVisible = true;
            }



            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 1)
            {
                FrequencyLabel2.IsVisible = true;
                FrequencyLabel2.Text = DiaryFrequency[1];
                RB2A2.IsVisible = true;
                RB2B2.IsVisible = true;
            }
        }
        private void RB2BFunction(object sender, EventArgs e)
        {

            Save_Settings("frequency_1", "0", CurrentId);
            S1BFunction(sender, e);
            S2BFunction(sender, e);
            S3BFunction(sender, e);
            S4BFunction(sender, e);
            S5BFunction(sender, e);
            S6BFunction(sender, e);
            S7BFunction(sender, e);
            S8BFunction(sender, e);
            S9BFunction(sender, e);
            S10BFunction(sender, e);
            OS1BFunction(sender, e);
            OS2BFunction(sender, e);
            OS3BFunction(sender, e);
            OS4BFunction(sender, e);
            OS5BFunction(sender, e);
            OS6BFunction(sender, e);
            OS7BFunction(sender, e);
            OS8BFunction(sender, e);
            OS9BFunction(sender, e);
            OS10BFunction(sender, e);
            S1A.IsChecked = false;
            S1B.IsChecked = false;
            S2A.IsChecked = false;
            S2B.IsChecked = false;
            S3A.IsChecked = false;
            S3B.IsChecked = false;
            S4A.IsChecked = false;
            S4B.IsChecked = false;
            S5A.IsChecked = false;
            S5B.IsChecked = false;
            S6A.IsChecked = false;
            S6B.IsChecked = false;
            S7A.IsChecked = false;
            S7B.IsChecked = false;
            S8A.IsChecked = false;
            S8B.IsChecked = false;
            S9A.IsChecked = false;
            S9B.IsChecked = false;
            S10A.IsChecked = false;
            S10B.IsChecked = false;
            OS1A.IsChecked = false;
            OS1B.IsChecked = false;
            OS2A.IsChecked = false;
            OS2B.IsChecked = false;
            OS3A.IsChecked = false;
            OS3B.IsChecked = false;
            OS4A.IsChecked = false;
            OS4B.IsChecked = false;
            OS5A.IsChecked = false;
            OS5B.IsChecked = false;
            OS6A.IsChecked = false;
            OS6B.IsChecked = false;
            OS7A.IsChecked = false;
            OS7B.IsChecked = false;
            OS8A.IsChecked = false;
            OS8B.IsChecked = false;
            OS9A.IsChecked = false;
            OS9B.IsChecked = false;
            OS10A.IsChecked = false;
            OS10B.IsChecked = false;

            S1BFunction(sender, e);
            S2BFunction(sender, e);
            S3BFunction(sender, e);
            S4BFunction(sender, e);
            S5BFunction(sender, e);
            S6BFunction(sender, e);
            S7BFunction(sender, e);
            S8BFunction(sender, e);
            S9BFunction(sender, e);
            S10BFunction(sender, e);
            OS1BFunction(sender, e);
            OS2BFunction(sender, e);
            OS3BFunction(sender, e);
            OS4BFunction(sender, e);
            OS5BFunction(sender, e);
            OS6BFunction(sender, e);
            OS7BFunction(sender, e);
            OS8BFunction(sender, e);
            OS9BFunction(sender, e);
            OS10BFunction(sender, e);

            Symptoms1.IsVisible = false;
            S1A.IsVisible = false;
            S1B.IsVisible = false;
            S2A.IsVisible = false;
            S2B.IsVisible = false;
            S3A.IsVisible = false;
            S3B.IsVisible = false;
            S4A.IsVisible = false;
            S4B.IsVisible = false;
            S5A.IsVisible = false;
            S5B.IsVisible = false;
            S6A.IsVisible = false;
            S6B.IsVisible = false;
            S7A.IsVisible = false;
            S7B.IsVisible = false;
            S8A.IsVisible = false;
            S8B.IsVisible = false;
            S9A.IsVisible = false;
            S9B.IsVisible = false;
            S10A.IsVisible = false;
            S10B.IsVisible = false;
            Symptom1.IsVisible = false;
            Symptom2.IsVisible = false;
            Symptom3.IsVisible = false;
            Symptom4.IsVisible = false;
            Symptom5.IsVisible = false;
            Symptom6.IsVisible = false;
            Symptom7.IsVisible = false;
            Symptom8.IsVisible = false;
            Symptom9.IsVisible = false;
            Symptom10.IsVisible = false;
            
            
            OS1A.IsVisible = false;
            OS1B.IsVisible = false;
            OS2A.IsVisible = false;
            OS2B.IsVisible = false;
            OS3A.IsVisible = false;
            OS3B.IsVisible = false;
            OS4A.IsVisible = false;
            OS4B.IsVisible = false;
            OS5A.IsVisible = false;
            OS5B.IsVisible = false;
            OS6A.IsVisible = false;
            OS6B.IsVisible = false;
            OS7A.IsVisible = false;
            OS7B.IsVisible = false;
            OS8A.IsVisible = false;
            OS8B.IsVisible = false;
            OS9A.IsVisible = false;
            OS9B.IsVisible = false;
            OS10A.IsVisible = false;
            OS10B.IsVisible = false;
            OSymptom1.IsVisible = false;
            OSymptom2.IsVisible = false;
            OSymptom3.IsVisible = false;
            OSymptom4.IsVisible = false;
            OSymptom5.IsVisible = false;
            OSymptom6.IsVisible = false;
            OSymptom7.IsVisible = false;
            OSymptom8.IsVisible = false;
            OSymptom9.IsVisible = false;
            OSymptom10.IsVisible = false;

            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 1)
            {
                FrequencyLabel2.IsVisible = true;
                FrequencyLabel2.Text = DiaryFrequency[1];
                RB2A2.IsVisible = true;
                RB2B2.IsVisible = true;
            }
        }

        private void RB2A2Function(object sender, EventArgs e)
        {
            Save_Settings("frequency_2", "1", CurrentId);
            Symptoms2.IsVisible = true;


            if (CurrentItem.Symptoms.Length == 1)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

            }
            if (CurrentItem.Symptoms.Length == 2)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 3)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 4)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 5)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 6)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }

            if (CurrentItem.Symptoms.Length == 7)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 8)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else
                {
                    Symptom8A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 9)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1A.IsVisible = true;
                    S1A2.IsVisible = true;
                    S1B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2A.IsVisible = true;
                    S2A2.IsVisible = true;
                    S2B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3A.IsVisible = true;
                    S3A2.IsVisible = true;
                    S3B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4A.IsVisible = true;
                    S4A2.IsVisible = true;
                    S4B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5A.IsVisible = true;
                    S5A2.IsVisible = true;
                    S5B2.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6A.IsVisible = true;
                    S6A2.IsVisible = true;
                    S6B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else if (S7A2.IsVisible)
                {
                    Symptom8A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }
                else
                {
                    Symptom7A.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7A.IsVisible = true;
                    S7A2.IsVisible = true;
                    S7B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else if (S7A2.IsVisible && S8A2.IsVisible)
                {
                    Symptom9A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
                else
                {
                    Symptom8A.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8A.IsVisible = true;
                    S8A2.IsVisible = true;
                    S8B2.IsVisible = true;
                }


                if (S7A2.IsVisible && S8A2.IsVisible && S9A2.IsVisible)
                {
                    Symptom10A.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom10A.IsVisible = true;
                    S10A2.IsVisible = true;
                    S10B2.IsVisible = true;
                }
                else
                {
                    Symptom9A.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9A.IsVisible = true;
                    S9A2.IsVisible = true;
                    S9B2.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 10)
            {
                Symptom1A.Text = CurrentItem.Symptoms[0] + "?";
                Symptom1A.IsVisible = true;
                S1A2.IsVisible = true;
                S1B2.IsVisible = true;

                Symptom2A.Text = CurrentItem.Symptoms[1] + "?";
                Symptom2A.IsVisible = true;
                S2A2.IsVisible = true;
                S2B2.IsVisible = true;

                Symptom3A.Text = CurrentItem.Symptoms[2] + "?";
                Symptom3A.IsVisible = true;
                S3A2.IsVisible = true;
                S3B2.IsVisible = true;

                Symptom4A.Text = CurrentItem.Symptoms[3] + "?";
                Symptom4A.IsVisible = true;
                S4A2.IsVisible = true;
                S4B2.IsVisible = true;

                Symptom5A.Text = CurrentItem.Symptoms[4] + "?";
                Symptom5A.IsVisible = true;
                S5A2.IsVisible = true;
                S5B2.IsVisible = true;

                Symptom6A.Text = CurrentItem.Symptoms[5] + "?";
                Symptom6A.IsVisible = true;
                S6A2.IsVisible = true;
                S6B2.IsVisible = true;

                Symptom7A.Text = CurrentItem.Symptoms[6] + "?";
                Symptom7A.IsVisible = true;
                S7A2.IsVisible = true;
                S7B2.IsVisible = true;

                Symptom8A.Text = CurrentItem.Symptoms[7] + "?";
                Symptom8A.IsVisible = true;
                S8A2.IsVisible = true;
                S8B2.IsVisible = true;

                Symptom9A.Text = CurrentItem.Symptoms[8] + "?";
                Symptom9A.IsVisible = true;
                S9A2.IsVisible = true;
                S9B2.IsVisible = true;

                Symptom10A.Text = CurrentItem.Symptoms[9] + "?";
                Symptom10A.IsVisible = true;
                S10A2.IsVisible = true;
                S10B2.IsVisible = true;
            }

            if (CurrentItem.OtherSymptoms.Length == 1)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }

            }
            if (CurrentItem.OtherSymptoms.Length == 2)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 3)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 4)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 5)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 6)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }
            }

            if (CurrentItem.OtherSymptoms.Length == 7)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 8)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 9)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1A.IsVisible = true;
                    OS1A2.IsVisible = true;
                    OS1B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2A.IsVisible = true;
                    OS2A2.IsVisible = true;
                    OS2B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3A.IsVisible = true;
                    OS3A2.IsVisible = true;
                    OS3B2.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4A.IsVisible = true;
                    OS4A2.IsVisible = true;
                    OS4B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible)
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible)
                {
                    OSymptom6A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6A.IsVisible = true;
                    OS6A2.IsVisible = true;
                    OS6B2.IsVisible = true;
                }
                else
                {
                    OSymptom5A.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5A.IsVisible = true;
                    OS5A2.IsVisible = true;
                    OS5B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible)
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }
                else
                {
                    OSymptom7A.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7A.IsVisible = true;
                    OS7A2.IsVisible = true;
                    OS7B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible)
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
                else
                {
                    OSymptom8A.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8A.IsVisible = true;
                    OS8A2.IsVisible = true;
                    OS8B2.IsVisible = true;
                }


                if (OS5A2.IsVisible && OS6A2.IsVisible && OS7A2.IsVisible && OS8A2.IsVisible && OS9A2.IsVisible)
                {
                    OSymptom10A.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom10A.IsVisible = true;
                    OS10A2.IsVisible = true;
                    OS10B2.IsVisible = true;
                }
                else
                {
                    OSymptom9A.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9A.IsVisible = true;
                    OS9A2.IsVisible = true;
                    OS9B2.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 10)
            {
                OSymptom1A.Text = CurrentItem.OtherSymptoms[0] + "?";
                OSymptom1A.IsVisible = true;
                OS1A2.IsVisible = true;
                OS1B2.IsVisible = true;

                OSymptom2A.Text = CurrentItem.OtherSymptoms[1] + "?";
                OSymptom2A.IsVisible = true;
                OS2A2.IsVisible = true;
                OS2B2.IsVisible = true;

                OSymptom3A.Text = CurrentItem.OtherSymptoms[2] + "?";
                OSymptom3A.IsVisible = true;
                OS3A2.IsVisible = true;
                OS3B2.IsVisible = true;

                OSymptom4A.Text = CurrentItem.OtherSymptoms[3] + "?";
                OSymptom4A.IsVisible = true;
                OS4A2.IsVisible = true;
                OS4B2.IsVisible = true;

                OSymptom5A.Text = CurrentItem.OtherSymptoms[4] + "?";
                OSymptom5A.IsVisible = true;
                OS5A2.IsVisible = true;
                OS5B2.IsVisible = true;

                OSymptom6A.Text = CurrentItem.OtherSymptoms[5] + "?";
                OSymptom6A.IsVisible = true;
                OS6A2.IsVisible = true;
                OS6B2.IsVisible = true;

                OSymptom7A.Text = CurrentItem.OtherSymptoms[6] + "?";
                OSymptom7A.IsVisible = true;
                OS7A2.IsVisible = true;
                OS7B2.IsVisible = true;

                OSymptom8A.Text = CurrentItem.OtherSymptoms[7] + "?";
                OSymptom8A.IsVisible = true;
                OS8A2.IsVisible = true;
                OS8B2.IsVisible = true;

                OSymptom9A.Text = CurrentItem.OtherSymptoms[8] + "?";
                OSymptom9A.IsVisible = true;
                OS9A2.IsVisible = true;
                OS9B2.IsVisible = true;

                OSymptom10A.Text = CurrentItem.OtherSymptoms[9] + "?";
                OSymptom10A.IsVisible = true;
                OS10A2.IsVisible = true;
                OS10B2.IsVisible = true;
            }




            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 2)
            {
                FrequencyLabel3.IsVisible = true;
                FrequencyLabel3.Text = DiaryFrequency[2];
                RB2A3.IsVisible = true;
                RB2B3.IsVisible = true;
            }
        }
        private void RB2B2Function(object sender, EventArgs e)
        {
            Save_Settings("frequency_2", "0", CurrentId);
            S1B2Function(sender, e);
            S2B2Function(sender, e);
            S3B2Function(sender, e);
            S4B2Function(sender, e);
            S5B2Function(sender, e);
            S6B2Function(sender, e);
            S7B2Function(sender, e);
            S8B2Function(sender, e);
            S9B2Function(sender, e);
            S10B2Function(sender, e);
            OS1B2Function(sender, e);
            OS2B2Function(sender, e);
            OS3B2Function(sender, e);
            OS4B2Function(sender, e);
            OS5B2Function(sender, e);
            OS6B2Function(sender, e);
            OS7B2Function(sender, e);
            OS8B2Function(sender, e);
            OS9B2Function(sender, e);
            OS10B2Function(sender, e);
            S1A2.IsChecked = false;
            S1B2.IsChecked = false;
            S2A2.IsChecked = false;
            S2B2.IsChecked = false;
            S3A2.IsChecked = false;
            S3B2.IsChecked = false;
            S4A2.IsChecked = false;
            S4B2.IsChecked = false;
            S5A2.IsChecked = false;
            S5B2.IsChecked = false;
            S6A2.IsChecked = false;
            S6B2.IsChecked = false;
            S7A2.IsChecked = false;
            S7B2.IsChecked = false;
            S8A2.IsChecked = false;
            S8B2.IsChecked = false;
            S9A2.IsChecked = false;
            S9B2.IsChecked = false;
            S10A2.IsChecked = false;
            S10B2.IsChecked = false;
            OS1A2.IsChecked = false;
            OS1B2.IsChecked = false;
            OS2A2.IsChecked = false;
            OS2B2.IsChecked = false;
            OS3A2.IsChecked = false;
            OS3B2.IsChecked = false;
            OS4A2.IsChecked = false;
            OS4B2.IsChecked = false;
            OS5A2.IsChecked = false;
            OS5B2.IsChecked = false;
            OS6A2.IsChecked = false;
            OS6B2.IsChecked = false;
            OS7A2.IsChecked = false;
            OS7B2.IsChecked = false;
            OS8A2.IsChecked = false;
            OS8B2.IsChecked = false;
            OS9A2.IsChecked = false;
            OS9B2.IsChecked = false;
            OS10A2.IsChecked = false;
            OS10B2.IsChecked = false;
            S1B2Function(sender, e);
            S2B2Function(sender, e);
            S3B2Function(sender, e);
            S4B2Function(sender, e);
            S5B2Function(sender, e);
            S6B2Function(sender, e);
            S7B2Function(sender, e);
            S8B2Function(sender, e);
            S9B2Function(sender, e);
            S10B2Function(sender, e);
            OS1B2Function(sender, e);
            OS2B2Function(sender, e);
            OS3B2Function(sender, e);
            OS4B2Function(sender, e);
            OS5B2Function(sender, e);
            OS6B2Function(sender, e);
            OS7B2Function(sender, e);
            OS8B2Function(sender, e);
            OS9B2Function(sender, e);
            OS10B2Function(sender, e);


            Symptoms2.IsVisible = false;
            S1A2.IsVisible = false;
            S1B2.IsVisible = false;
            S2A2.IsVisible = false;
            S2B2.IsVisible = false;
            S3A2.IsVisible = false;
            S3B2.IsVisible = false;
            S4A2.IsVisible = false;
            S4B2.IsVisible = false;
            S5A2.IsVisible = false;
            S5B2.IsVisible = false;
            S6A2.IsVisible = false;
            S6B2.IsVisible = false;
            S7A2.IsVisible = false;
            S7B2.IsVisible = false;
            S8A2.IsVisible = false;
            S8B2.IsVisible = false;
            S9A2.IsVisible = false;
            S9B2.IsVisible = false;
            S10A2.IsVisible = false;
            S10B2.IsVisible = false;
            Symptom1A.IsVisible = false;
            Symptom2A.IsVisible = false;
            Symptom3A.IsVisible = false;
            Symptom4A.IsVisible = false;
            Symptom5A.IsVisible = false;
            Symptom6A.IsVisible = false;
            Symptom7A.IsVisible = false;
            Symptom8A.IsVisible = false;
            Symptom9A.IsVisible = false;
            Symptom10A.IsVisible = false;
            
            
            OS1A2.IsVisible = false;
            OS1B2.IsVisible = false;
            OS2A2.IsVisible = false;
            OS2B2.IsVisible = false;
            OS3A2.IsVisible = false;
            OS3B2.IsVisible = false;
            OS4A2.IsVisible = false;
            OS4B2.IsVisible = false;
            OS5A2.IsVisible = false;
            OS5B2.IsVisible = false;
            OS6A2.IsVisible = false;
            OS6B2.IsVisible = false;
            OS7A2.IsVisible = false;
            OS7B2.IsVisible = false;
            OS8A2.IsVisible = false;
            OS8B2.IsVisible = false;
            OS9A2.IsVisible = false;
            OS9B2.IsVisible = false;
            OS10A2.IsVisible = false;
            OS10B2.IsVisible = false;
            OSymptom1A.IsVisible = false;
            OSymptom2A.IsVisible = false;
            OSymptom3A.IsVisible = false;
            OSymptom4A.IsVisible = false;
            OSymptom5A.IsVisible = false;
            OSymptom6A.IsVisible = false;
            OSymptom7A.IsVisible = false;
            OSymptom8A.IsVisible = false;
            OSymptom9A.IsVisible = false;
            OSymptom10A.IsVisible = false;

            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 2)
            {
                FrequencyLabel3.IsVisible = true;
                FrequencyLabel3.Text = DiaryFrequency[2];
                RB2A3.IsVisible = true;
                RB2B3.IsVisible = true;
            }
        }

        private void RB2A3Function(object sender, EventArgs e)
        {
            Save_Settings("frequency_3", "1", CurrentId);
            Symptoms3.IsVisible = true;


            if (CurrentItem.Symptoms.Length == 1)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

            }
            if (CurrentItem.Symptoms.Length == 2)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 3)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 4)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 5)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 6)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }

            if (CurrentItem.Symptoms.Length == 7)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 8)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else
                {
                    Symptom8B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 9)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1B.IsVisible = true;
                    S1A3.IsVisible = true;
                    S1B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2B.IsVisible = true;
                    S2A3.IsVisible = true;
                    S2B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3B.IsVisible = true;
                    S3A3.IsVisible = true;
                    S3B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4B.IsVisible = true;
                    S4A3.IsVisible = true;
                    S4B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5B.IsVisible = true;
                    S5A3.IsVisible = true;
                    S5B3.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6B.IsVisible = true;
                    S6A3.IsVisible = true;
                    S6B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else if (S7A3.IsVisible)
                {
                    Symptom8B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }
                else
                {
                    Symptom7B.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7B.IsVisible = true;
                    S7A3.IsVisible = true;
                    S7B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else if (S7A3.IsVisible && S8A3.IsVisible)
                {
                    Symptom9B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
                else
                {
                    Symptom8B.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8B.IsVisible = true;
                    S8A3.IsVisible = true;
                    S8B3.IsVisible = true;
                }


                if (S7A3.IsVisible && S8A3.IsVisible && S9A3.IsVisible)
                {
                    Symptom10B.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom10B.IsVisible = true;
                    S10A3.IsVisible = true;
                    S10B3.IsVisible = true;
                }
                else
                {
                    Symptom9B.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9B.IsVisible = true;
                    S9A3.IsVisible = true;
                    S9B3.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 10)
            {
                Symptom1B.Text = CurrentItem.Symptoms[0] + "?";
                Symptom1B.IsVisible = true;
                S1A3.IsVisible = true;
                S1B3.IsVisible = true;

                Symptom2B.Text = CurrentItem.Symptoms[1] + "?";
                Symptom2B.IsVisible = true;
                S2A3.IsVisible = true;
                S2B3.IsVisible = true;

                Symptom3B.Text = CurrentItem.Symptoms[2] + "?";
                Symptom3B.IsVisible = true;
                S3A3.IsVisible = true;
                S3B3.IsVisible = true;

                Symptom4B.Text = CurrentItem.Symptoms[3] + "?";
                Symptom4B.IsVisible = true;
                S4A3.IsVisible = true;
                S4B3.IsVisible = true;

                Symptom5B.Text = CurrentItem.Symptoms[4] + "?";
                Symptom5B.IsVisible = true;
                S5A3.IsVisible = true;
                S5B3.IsVisible = true;

                Symptom6B.Text = CurrentItem.Symptoms[5] + "?";
                Symptom6B.IsVisible = true;
                S6A3.IsVisible = true;
                S6B3.IsVisible = true;

                Symptom7B.Text = CurrentItem.Symptoms[6] + "?";
                Symptom7B.IsVisible = true;
                S7A3.IsVisible = true;
                S7B3.IsVisible = true;

                Symptom8B.Text = CurrentItem.Symptoms[7] + "?";
                Symptom8B.IsVisible = true;
                S8A3.IsVisible = true;
                S8B3.IsVisible = true;

                Symptom9B.Text = CurrentItem.Symptoms[8] + "?";
                Symptom9B.IsVisible = true;
                S9A3.IsVisible = true;
                S9B3.IsVisible = true;

                Symptom10B.Text = CurrentItem.Symptoms[9] + "?";
                Symptom10B.IsVisible = true;
                S10A3.IsVisible = true;
                S10B3.IsVisible = true;
            }

            if (CurrentItem.OtherSymptoms.Length == 1)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }

            }
            if (CurrentItem.OtherSymptoms.Length == 2)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 3)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 4)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 5)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 6)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }
            }

            if (CurrentItem.OtherSymptoms.Length == 7)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 8)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 9)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1B.IsVisible = true;
                    OS1A3.IsVisible = true;
                    OS1B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2B.IsVisible = true;
                    OS2A3.IsVisible = true;
                    OS2B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3B.IsVisible = true;
                    OS3A3.IsVisible = true;
                    OS3B3.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4B.IsVisible = true;
                    OS4A3.IsVisible = true;
                    OS4B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible)
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible)
                {
                    OSymptom6B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6B.IsVisible = true;
                    OS6A3.IsVisible = true;
                    OS6B3.IsVisible = true;
                }
                else
                {
                    OSymptom5B.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5B.IsVisible = true;
                    OS5A3.IsVisible = true;
                    OS5B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible)
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }
                else
                {
                    OSymptom7B.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7B.IsVisible = true;
                    OS7A3.IsVisible = true;
                    OS7B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible)
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
                else
                {
                    OSymptom8B.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8B.IsVisible = true;
                    OS8A3.IsVisible = true;
                    OS8B3.IsVisible = true;
                }


                if (OS5A3.IsVisible && OS6A3.IsVisible && OS7A3.IsVisible && OS8A3.IsVisible && OS9A3.IsVisible)
                {
                    OSymptom10B.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom10B.IsVisible = true;
                    OS10A3.IsVisible = true;
                    OS10B3.IsVisible = true;
                }
                else
                {
                    OSymptom9B.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9B.IsVisible = true;
                    OS9A3.IsVisible = true;
                    OS9B3.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 10)
            {
                OSymptom1B.Text = CurrentItem.OtherSymptoms[0] + "?";
                OSymptom1B.IsVisible = true;
                OS1A3.IsVisible = true;
                OS1B3.IsVisible = true;

                OSymptom2B.Text = CurrentItem.OtherSymptoms[1] + "?";
                OSymptom2B.IsVisible = true;
                OS2A3.IsVisible = true;
                OS2B3.IsVisible = true;

                OSymptom3B.Text = CurrentItem.OtherSymptoms[2] + "?";
                OSymptom3B.IsVisible = true;
                OS3A3.IsVisible = true;
                OS3B3.IsVisible = true;

                OSymptom4B.Text = CurrentItem.OtherSymptoms[3] + "?";
                OSymptom4B.IsVisible = true;
                OS4A3.IsVisible = true;
                OS4B3.IsVisible = true;

                OSymptom5B.Text = CurrentItem.OtherSymptoms[4] + "?";
                OSymptom5B.IsVisible = true;
                OS5A3.IsVisible = true;
                OS5B3.IsVisible = true;

                OSymptom6B.Text = CurrentItem.OtherSymptoms[5] + "?";
                OSymptom6B.IsVisible = true;
                OS6A3.IsVisible = true;
                OS6B3.IsVisible = true;

                OSymptom7B.Text = CurrentItem.OtherSymptoms[6] + "?";
                OSymptom7B.IsVisible = true;
                OS7A3.IsVisible = true;
                OS7B3.IsVisible = true;

                OSymptom8B.Text = CurrentItem.OtherSymptoms[7] + "?";
                OSymptom8B.IsVisible = true;
                OS8A3.IsVisible = true;
                OS8B3.IsVisible = true;

                OSymptom9B.Text = CurrentItem.OtherSymptoms[8] + "?";
                OSymptom9B.IsVisible = true;
                OS9A3.IsVisible = true;
                OS9B3.IsVisible = true;

                OSymptom10B.Text = CurrentItem.OtherSymptoms[9] + "?";
                OSymptom10B.IsVisible = true;
                OS10A3.IsVisible = true;
                OS10B3.IsVisible = true;
            }



            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 3)
            {
                FrequencyLabel4.IsVisible = true;
                FrequencyLabel4.Text = DiaryFrequency[3];
                RB2A4.IsVisible = true;
                RB2B4.IsVisible = true;
            }
        }
        private void RB2B3Function(object sender, EventArgs e)
        {
            Save_Settings("frequency_3", "0", CurrentId);
            S1B3Function(sender, e);
            S2B3Function(sender, e);
            S3B3Function(sender, e);
            S4B3Function(sender, e);
            S5B3Function(sender, e);
            S6B3Function(sender, e);
            S7B3Function(sender, e);
            S8B3Function(sender, e);
            S9B3Function(sender, e);
            S10B3Function(sender, e);
            OS1B3Function(sender, e);
            OS2B3Function(sender, e);
            OS3B3Function(sender, e);
            OS4B3Function(sender, e);
            OS5B3Function(sender, e);
            OS6B3Function(sender, e);
            OS7B3Function(sender, e);
            OS8B3Function(sender, e);
            OS9B3Function(sender, e);
            OS10B3Function(sender, e);

            S1A3.IsChecked = false;
            S1B3.IsChecked = false;
            S2A3.IsChecked = false;
            S2B3.IsChecked = false;
            S3A3.IsChecked = false;
            S3B3.IsChecked = false;
            S4A3.IsChecked = false;
            S4B3.IsChecked = false;
            S5A3.IsChecked = false;
            S5B3.IsChecked = false;
            S6A3.IsChecked = false;
            S6B3.IsChecked = false;
            S7A3.IsChecked = false;
            S7B3.IsChecked = false;
            S8A3.IsChecked = false;
            S8B3.IsChecked = false;
            S9A3.IsChecked = false;
            S9B3.IsChecked = false;
            S10A3.IsChecked = false;
            S10B3.IsChecked = false;
            OS1A3.IsChecked = false;
            OS1B3.IsChecked = false;
            OS2A3.IsChecked = false;
            OS2B3.IsChecked = false;
            OS3A3.IsChecked = false;
            OS3B3.IsChecked = false;
            OS4A3.IsChecked = false;
            OS4B3.IsChecked = false;
            OS5A3.IsChecked = false;
            OS5B3.IsChecked = false;
            OS6A3.IsChecked = false;
            OS6B3.IsChecked = false;
            OS7A3.IsChecked = false;
            OS7B3.IsChecked = false;
            OS8A3.IsChecked = false;
            OS8B3.IsChecked = false;
            OS9A3.IsChecked = false;
            OS9B3.IsChecked = false;
            OS10A3.IsChecked = false;
            OS10B3.IsChecked = false;

            S1B3Function(sender, e);
            S2B3Function(sender, e);
            S3B3Function(sender, e);
            S4B3Function(sender, e);
            S5B3Function(sender, e);
            S6B3Function(sender, e);
            S7B3Function(sender, e);
            S8B3Function(sender, e);
            S9B3Function(sender, e);
            S10B3Function(sender, e);
            OS1B3Function(sender, e);
            OS2B3Function(sender, e);
            OS3B3Function(sender, e);
            OS4B3Function(sender, e);
            OS5B3Function(sender, e);
            OS6B3Function(sender, e);
            OS7B3Function(sender, e);
            OS8B3Function(sender, e);
            OS9B3Function(sender, e);
            OS10B3Function(sender, e);


            Symptoms3.IsVisible = false;
            S1A3.IsVisible = false;
            S1B3.IsVisible = false;
            S2A3.IsVisible = false;
            S2B3.IsVisible = false;
            S3A3.IsVisible = false;
            S3B3.IsVisible = false;
            S4A3.IsVisible = false;
            S4B3.IsVisible = false;
            S5A3.IsVisible = false;
            S5B3.IsVisible = false;
            S6A3.IsVisible = false;
            S6B3.IsVisible = false;
            S7A3.IsVisible = false;
            S7B3.IsVisible = false;
            S8A3.IsVisible = false;
            S8B3.IsVisible = false;
            S9A3.IsVisible = false;
            S9B3.IsVisible = false;
            S10A3.IsVisible = false;
            S10B3.IsVisible = false;
            Symptom1B.IsVisible = false;
            Symptom2B.IsVisible = false;
            Symptom3B.IsVisible = false;
            Symptom4B.IsVisible = false;
            Symptom5B.IsVisible = false;
            Symptom6B.IsVisible = false;
            Symptom7B.IsVisible = false;
            Symptom8B.IsVisible = false;
            Symptom9B.IsVisible = false;
            Symptom10B.IsVisible = false;

            
            
            OS1A3.IsVisible = false;
            OS1B3.IsVisible = false;
            OS2A3.IsVisible = false;
            OS2B3.IsVisible = false;
            OS3A3.IsVisible = false;
            OS3B3.IsVisible = false;
            OS4A3.IsVisible = false;
            OS4B3.IsVisible = false;
            OS5A3.IsVisible = false;
            OS5B3.IsVisible = false;
            OS6A3.IsVisible = false;
            OS6B3.IsVisible = false;
            OS7A3.IsVisible = false;
            OS7B3.IsVisible = false;
            OS8A3.IsVisible = false;
            OS8B3.IsVisible = false;
            OS9A3.IsVisible = false;
            OS9B3.IsVisible = false;
            OS10A3.IsVisible = false;
            OS10B3.IsVisible = false;
            OSymptom1B.IsVisible = false;
            OSymptom2B.IsVisible = false;
            OSymptom3B.IsVisible = false;
            OSymptom4B.IsVisible = false;
            OSymptom5B.IsVisible = false;
            OSymptom6B.IsVisible = false;
            OSymptom7B.IsVisible = false;
            OSymptom8B.IsVisible = false;
            OSymptom9B.IsVisible = false;
            OSymptom10B.IsVisible = false;

            DiaryFrequency = FrequencyIntToString(FrequencyToInt(CurrentItem.Frequency));
            if (DiaryFrequency.Count > 3)
            {
                FrequencyLabel4.IsVisible = true;
                FrequencyLabel4.Text = DiaryFrequency[3];
                RB2A4.IsVisible = true;
                RB2B4.IsVisible = true;
            }
        }

        private void RB2A4Function(object sender, EventArgs e)
        {
            Save_Settings("frequency_4", "1", CurrentId);
            Symptoms4.IsVisible = true;


            if (CurrentItem.Symptoms.Length == 1)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

            }
            if (CurrentItem.Symptoms.Length == 2)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 3)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 4)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 5)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 6)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }

            if (CurrentItem.Symptoms.Length == 7)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 8)
            {

                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else
                {
                    Symptom8C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 9)
            {
                if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom1))
                {
                    Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom1C.IsVisible = true;
                    S1A4.IsVisible = true;
                    S1B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[0].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[0] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }

                if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom2))
                {
                    Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom2C.IsVisible = true;
                    S2A4.IsVisible = true;
                    S2B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[1].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[1] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom3))
                {
                    Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom3C.IsVisible = true;
                    S3A4.IsVisible = true;
                    S3B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[2].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[2] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom4))
                {
                    Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom4C.IsVisible = true;
                    S4A4.IsVisible = true;
                    S4B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[3].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[3] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom5))
                {
                    Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom5C.IsVisible = true;
                    S5A4.IsVisible = true;
                    S5B4.IsVisible = true;
                }
                else if (CurrentItem.Symptoms[4].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[4] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (CurrentItem.Symptoms[5].Contains(Properties.Resources.GutSymptom6))
                {
                    Symptom6C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom6C.IsVisible = true;
                    S6A4.IsVisible = true;
                    S6B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[5] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else if (S7A4.IsVisible)
                {
                    Symptom8C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }
                else
                {
                    Symptom7C.Text = CurrentItem.Symptoms[6] + "?";
                    Symptom7C.IsVisible = true;
                    S7A4.IsVisible = true;
                    S7B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else if (S7A4.IsVisible && S8A4.IsVisible)
                {
                    Symptom9C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
                else
                {
                    Symptom8C.Text = CurrentItem.Symptoms[7] + "?";
                    Symptom8C.IsVisible = true;
                    S8A4.IsVisible = true;
                    S8B4.IsVisible = true;
                }


                if (S7A4.IsVisible && S8A4.IsVisible && S9A4.IsVisible)
                {
                    Symptom10C.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom10C.IsVisible = true;
                    S10A4.IsVisible = true;
                    S10B4.IsVisible = true;
                }
                else
                {
                    Symptom9C.Text = CurrentItem.Symptoms[8] + "?";
                    Symptom9C.IsVisible = true;
                    S9A4.IsVisible = true;
                    S9B4.IsVisible = true;
                }
            }
            if (CurrentItem.Symptoms.Length == 10)
            {
                Symptom1C.Text = CurrentItem.Symptoms[0] + "?";
                Symptom1C.IsVisible = true;
                S1A4.IsVisible = true;
                S1B4.IsVisible = true;

                Symptom2C.Text = CurrentItem.Symptoms[1] + "?";
                Symptom2C.IsVisible = true;
                S2A4.IsVisible = true;
                S2B4.IsVisible = true;

                Symptom3C.Text = CurrentItem.Symptoms[2] + "?";
                Symptom3C.IsVisible = true;
                S3A4.IsVisible = true;
                S3B4.IsVisible = true;

                Symptom4C.Text = CurrentItem.Symptoms[3] + "?";
                Symptom4C.IsVisible = true;
                S4A4.IsVisible = true;
                S4B4.IsVisible = true;

                Symptom5C.Text = CurrentItem.Symptoms[4] + "?";
                Symptom5C.IsVisible = true;
                S5A4.IsVisible = true;
                S5B4.IsVisible = true;

                Symptom6C.Text = CurrentItem.Symptoms[5] + "?";
                Symptom6C.IsVisible = true;
                S6A4.IsVisible = true;
                S6B4.IsVisible = true;

                Symptom7C.Text = CurrentItem.Symptoms[6] + "?";
                Symptom7C.IsVisible = true;
                S7A4.IsVisible = true;
                S7B4.IsVisible = true;

                Symptom8C.Text = CurrentItem.Symptoms[7] + "?";
                Symptom8C.IsVisible = true;
                S8A4.IsVisible = true;
                S8B4.IsVisible = true;

                Symptom9C.Text = CurrentItem.Symptoms[8] + "?";
                Symptom9C.IsVisible = true;
                S9A4.IsVisible = true;
                S9B4.IsVisible = true;

                Symptom10C.Text = CurrentItem.Symptoms[9] + "?";
                Symptom10C.IsVisible = true;
                S10A4.IsVisible = true;
                S10B4.IsVisible = true;
            }

            if (CurrentItem.OtherSymptoms.Length == 1)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }

            }
            if (CurrentItem.OtherSymptoms.Length == 2)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 3)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 4)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 5)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 6)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }
            }

            if (CurrentItem.OtherSymptoms.Length == 7)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 8)
            {

                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 9)
            {
                if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom1))
                {
                    OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom1C.IsVisible = true;
                    OS1A4.IsVisible = true;
                    OS1B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[0].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[0] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom2))
                {
                    OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom2C.IsVisible = true;
                    OS2A4.IsVisible = true;
                    OS2B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[1].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[1] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom3))
                {
                    OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom3C.IsVisible = true;
                    OS3A4.IsVisible = true;
                    OS3B4.IsVisible = true;
                }
                else if (CurrentItem.OtherSymptoms[2].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[2] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (CurrentItem.OtherSymptoms[3].Contains(Properties.Resources.OtherSymptom4))
                {
                    OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom4C.IsVisible = true;
                    OS4A4.IsVisible = true;
                    OS4B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[3] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible)
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible)
                {
                    OSymptom6C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom6C.IsVisible = true;
                    OS6A4.IsVisible = true;
                    OS6B4.IsVisible = true;
                }
                else
                {
                    OSymptom5C.Text = CurrentItem.OtherSymptoms[5] + "?";
                    OSymptom5C.IsVisible = true;
                    OS5A4.IsVisible = true;
                    OS5B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible)
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }
                else
                {
                    OSymptom7C.Text = CurrentItem.OtherSymptoms[6] + "?";
                    OSymptom7C.IsVisible = true;
                    OS7A4.IsVisible = true;
                    OS7B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible)
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
                else
                {
                    OSymptom8C.Text = CurrentItem.OtherSymptoms[7] + "?";
                    OSymptom8C.IsVisible = true;
                    OS8A4.IsVisible = true;
                    OS8B4.IsVisible = true;
                }


                if (OS5A4.IsVisible && OS6A4.IsVisible && OS7A4.IsVisible && OS8A4.IsVisible && OS9A4.IsVisible)
                {
                    OSymptom10C.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom10C.IsVisible = true;
                    OS10A4.IsVisible = true;
                    OS10B4.IsVisible = true;
                }
                else
                {
                    OSymptom9C.Text = CurrentItem.OtherSymptoms[8] + "?";
                    OSymptom9C.IsVisible = true;
                    OS9A4.IsVisible = true;
                    OS9B4.IsVisible = true;
                }
            }
            if (CurrentItem.OtherSymptoms.Length == 10)
            {
                OSymptom1C.Text = CurrentItem.OtherSymptoms[0] + "?";
                OSymptom1C.IsVisible = true;
                OS1A4.IsVisible = true;
                OS1B4.IsVisible = true;

                OSymptom2C.Text = CurrentItem.OtherSymptoms[1] + "?";
                OSymptom2C.IsVisible = true;
                OS2A4.IsVisible = true;
                OS2B4.IsVisible = true;

                OSymptom3C.Text = CurrentItem.OtherSymptoms[2] + "?";
                OSymptom3C.IsVisible = true;
                OS3A4.IsVisible = true;
                OS3B4.IsVisible = true;

                OSymptom4C.Text = CurrentItem.OtherSymptoms[3] + "?";
                OSymptom4C.IsVisible = true;
                OS4A4.IsVisible = true;
                OS4B4.IsVisible = true;

                OSymptom5C.Text = CurrentItem.OtherSymptoms[4] + "?";
                OSymptom5C.IsVisible = true;
                OS5A4.IsVisible = true;
                OS5B4.IsVisible = true;

                OSymptom6C.Text = CurrentItem.OtherSymptoms[5] + "?";
                OSymptom6C.IsVisible = true;
                OS6A4.IsVisible = true;
                OS6B4.IsVisible = true;

                OSymptom7C.Text = CurrentItem.OtherSymptoms[6] + "?";
                OSymptom7C.IsVisible = true;
                OS7A4.IsVisible = true;
                OS7B4.IsVisible = true;

                OSymptom8C.Text = CurrentItem.OtherSymptoms[7] + "?";
                OSymptom8C.IsVisible = true;
                OS8A4.IsVisible = true;
                OS8B4.IsVisible = true;

                OSymptom9C.Text = CurrentItem.OtherSymptoms[8] + "?";
                OSymptom9C.IsVisible = true;
                OS9A4.IsVisible = true;
                OS9B4.IsVisible = true;

                OSymptom10C.Text = CurrentItem.OtherSymptoms[9] + "?";
                OSymptom10C.IsVisible = true;
                OS10A4.IsVisible = true;
                OS10B4.IsVisible = true;
            }

        }
        private void RB2B4Function(object sender, EventArgs e)
        {

            Save_Settings("frequency_4", "0", CurrentId);

            S1B4Function(sender, e);
            S2B4Function(sender, e);
            S3B4Function(sender, e);
            S4B4Function(sender, e);
            S5B4Function(sender, e);
            S6B4Function(sender, e);
            S7B4Function(sender, e);
            S8B4Function(sender, e);
            S9B4Function(sender, e);
            S10B4Function(sender, e);

            OS1B4Function(sender, e);
            OS2B4Function(sender, e);
            OS3B4Function(sender, e);
            OS4B4Function(sender, e);
            OS5B4Function(sender, e);
            OS6B4Function(sender, e);
            OS7B4Function(sender, e);
            OS8B4Function(sender, e);
            OS9B4Function(sender, e);
            OS10B4Function(sender, e);
            S1A4.IsChecked = false;
            S1B4.IsChecked = false;
            S2A4.IsChecked = false;
            S2B4.IsChecked = false;
            S3A4.IsChecked = false;
            S3B4.IsChecked = false;
            S4A4.IsChecked = false;
            S4B4.IsChecked = false;
            S5A4.IsChecked = false;
            S5B4.IsChecked = false;
            S6A4.IsChecked = false;
            S6B4.IsChecked = false;
            S7A4.IsChecked = false;
            S7B4.IsChecked = false;
            S8A4.IsChecked = false;
            S8B4.IsChecked = false;
            S9A4.IsChecked = false;
            S9B4.IsChecked = false;
            S10A4.IsChecked = false;
            S10B4.IsChecked = false;
            OS1A4.IsChecked = false;
            OS1B4.IsChecked = false;
            OS2A4.IsChecked = false;
            OS2B4.IsChecked = false;
            OS3A4.IsChecked = false;
            OS3B4.IsChecked = false;
            OS4A4.IsChecked = false;
            OS4B4.IsChecked = false;
            OS5A4.IsChecked = false;
            OS5B4.IsChecked = false;
            OS6A4.IsChecked = false;
            OS6B4.IsChecked = false;
            OS7A4.IsChecked = false;
            OS7B4.IsChecked = false;
            OS8A4.IsChecked = false;
            OS8B4.IsChecked = false;
            OS9A4.IsChecked = false;
            OS9B4.IsChecked = false;
            OS10A4.IsChecked = false;
            OS10B4.IsChecked = false;

            S1B4Function(sender, e);
            S2B4Function(sender, e);
            S3B4Function(sender, e);
            S4B4Function(sender, e);
            S5B4Function(sender, e);
            S6B4Function(sender, e);
            S7B4Function(sender, e);
            S8B4Function(sender, e);
            S9B4Function(sender, e);
            S10B4Function(sender, e);

            OS1B4Function(sender, e);
            OS2B4Function(sender, e);
            OS3B4Function(sender, e);
            OS4B4Function(sender, e);
            OS5B4Function(sender, e);
            OS6B4Function(sender, e);
            OS7B4Function(sender, e);
            OS8B4Function(sender, e);
            OS9B4Function(sender, e);
            OS10B4Function(sender, e);
            Symptoms4.IsVisible = false;
            S1A4.IsVisible = false;
            S1B4.IsVisible = false;
            S2A4.IsVisible = false;
            S2B4.IsVisible = false;
            S3A4.IsVisible = false;
            S3B4.IsVisible = false;
            S4A4.IsVisible = false;
            S4B4.IsVisible = false;
            S5A4.IsVisible = false;
            S5B4.IsVisible = false;
            S6A4.IsVisible = false;
            S6B4.IsVisible = false;
            S7A4.IsVisible = false;
            S7B4.IsVisible = false;
            S8A4.IsVisible = false;
            S8B4.IsVisible = false;
            S9A4.IsVisible = false;
            S9B4.IsVisible = false;
            S10A4.IsVisible = false;
            S10B4.IsVisible = false;
            Symptom1C.IsVisible = false;
            Symptom2C.IsVisible = false;
            Symptom3C.IsVisible = false;
            Symptom4C.IsVisible = false;
            Symptom5C.IsVisible = false;
            Symptom6C.IsVisible = false;
            Symptom7C.IsVisible = false;
            Symptom8C.IsVisible = false;
            Symptom9C.IsVisible = false;
            Symptom10C.IsVisible = false;

            
            OS1A4.IsVisible = false;
            OS1B4.IsVisible = false;
            OS2A4.IsVisible = false;
            OS2B4.IsVisible = false;
            OS3A4.IsVisible = false;
            OS3B4.IsVisible = false;
            OS4A4.IsVisible = false;
            OS4B4.IsVisible = false;
            OS5A4.IsVisible = false;
            OS5B4.IsVisible = false;
            OS6A4.IsVisible = false;
            OS6B4.IsVisible = false;
            OS7A4.IsVisible = false;
            OS7B4.IsVisible = false;
            OS8A4.IsVisible = false;
            OS8B4.IsVisible = false;
            OS9A4.IsVisible = false;
            OS9B4.IsVisible = false;
            OS10A4.IsVisible = false;
            OS10B4.IsVisible = false;
            OSymptom1C.IsVisible = false;
            OSymptom2C.IsVisible = false;
            OSymptom3C.IsVisible = false;
            OSymptom4C.IsVisible = false;
            OSymptom5C.IsVisible = false;
            OSymptom6C.IsVisible = false;
            OSymptom7C.IsVisible = false;
            OSymptom8C.IsVisible = false;
            OSymptom9C.IsVisible = false;
            OSymptom10C.IsVisible = false;
        }

        private void I1Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_1", (I1.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I2Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_2", (I2.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I3Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_3", (I3.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I4Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_4", (I4.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I5Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_5", (I5.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I6Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_6", (I6.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I7Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_7", (I7.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I8Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_8", (I8.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I9Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_9", (I9.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I10Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_10", (I10.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI1Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_11", (OI1.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI2Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_12", (OI2.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI3Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_13", (OI3.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI4Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_14", (OI4.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI5Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_15", (OI5.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI6Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_16", (OI6.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI7Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_17", (OI7.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI8Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_18", (OI8.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI9Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_19", (OI9.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI10Function(object sender, EventArgs e)
        {
            Save_Settings("intensity_20", (OI10.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void I1AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_21", (I1A.SelectedIndex + 1).ToString(), CurrentId);
            Console.WriteLine(Preferences.Get("intensity_21", "value", CurrentId));
        }
        private void I2AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_22", (I2A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I3AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_23", (I3A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I4AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_24", (I4A.SelectedIndex + 1).ToString(), CurrentId);
            Console.WriteLine(Preferences.Get("intensity_25", "value", CurrentId));
        }
        private void I5AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_25", (I5A.SelectedIndex + 1).ToString(), CurrentId);
            Console.WriteLine(Preferences.Get("intensity_25", "value", CurrentId));
        }
        private void I6AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_26", (I6A.SelectedIndex + 1).ToString(), CurrentId);
            Console.WriteLine(Preferences.Get("intensity_25", "value", CurrentId));
        }
        private void I7AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_27", (I7A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I8AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_28", (I8A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I9AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_29", (I9A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I10AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_30", (I10A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI1AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_31", (OI1A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI2AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_32", (OI2A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI3AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_33", (OI3A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI4AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_34", (OI4A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI5AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_35", (OI5A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI6AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_36", (OI6A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI7AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_37", (OI7A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI8AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_38", (OI8A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI9AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_39", (OI9A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI10AFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_40", (OI10A.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void I1BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_41", (I1B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I2BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_42", (I2B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I3BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_43", (I3B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I4BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_44", (I4B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I5BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_45", (I5B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I6BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_46", (I6B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I7BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_47", (I7B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I8BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_48", (I8B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I9BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_49", (I9B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I10BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_50", (I10B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI1BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_51", (OI1B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI2BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_52", (OI2B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI3BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_53", (OI3B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI4BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_54", (OI4B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI5BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_55", (OI5B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI6BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_56", (OI6B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI7BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_57", (OI7B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI8BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_58", (OI8B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI9BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_59", (OI9B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI10BFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_60", (OI10B.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void I1CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_61", (I1C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I2CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_62", (I2C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I3CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_63", (I3C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I4CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_64", (I4C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I5CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_65", (I5C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I6CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_66", (I6C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I7CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_67", (I7C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I8CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_68", (I8C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I9CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_69", (I9C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void I10CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_70", (I10C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI1CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_71", (OI1C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI2CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_72", (OI2C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI3CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_73", (OI3C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI4CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_74", (OI4C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI5CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_75", (OI5C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI6CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_76", (OI6C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI7CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_77", (OI7C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI8CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_78", (OI8C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI9CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_79", (OI9C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OI10CFunction(object sender, EventArgs e)
        {
            Save_Settings("intensity_80", (OI10C.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void D1Function(object sender, EventArgs e)
        {
            Save_Settings("duration_1", (D1.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D2Function(object sender, EventArgs e)
        {
            Save_Settings("duration_2", (D2.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D3Function(object sender, EventArgs e)
        {
            Save_Settings("duration_3", (D3.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D4Function(object sender, EventArgs e)
        {
            Save_Settings("duration_4", (D4.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D5Function(object sender, EventArgs e)
        {
            Save_Settings("duration_5", (D5.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D6Function(object sender, EventArgs e)
        {
            Save_Settings("duration_6", (D6.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D7Function(object sender, EventArgs e)
        {
            Save_Settings("duration_7", (D7.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D8Function(object sender, EventArgs e)
        {
            Save_Settings("duration_8", (D8.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D9Function(object sender, EventArgs e)
        {
            Save_Settings("duration_9", (D9.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D10Function(object sender, EventArgs e)
        {
            Save_Settings("duration_10", (D10.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD1Function(object sender, EventArgs e)
        {
            Save_Settings("duration_11", (OD1.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD2Function(object sender, EventArgs e)
        {
            Save_Settings("duration_12", (OD2.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD3Function(object sender, EventArgs e)
        {
            Save_Settings("duration_13", (OD3.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD4Function(object sender, EventArgs e)
        {
            Save_Settings("duration_14", (OD4.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD5Function(object sender, EventArgs e)
        {
            Save_Settings("duration_15", (OD5.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD6Function(object sender, EventArgs e)
        {
            Save_Settings("duration_16", (OD6.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD7Function(object sender, EventArgs e)
        {
            Save_Settings("duration_17", (OD7.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD8Function(object sender, EventArgs e)
        {
            Save_Settings("duration_18", (OD8.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD9Function(object sender, EventArgs e)
        {
            Save_Settings("duration_19", (OD9.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD10Function(object sender, EventArgs e)
        {
            Save_Settings("duration_20", (OD10.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void D1AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_21", (D1A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D2AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_22", (D2A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D3AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_23", (D3A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D4AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_24", (D4A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D5AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_25", (D5A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D6AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_26", (D6A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D7AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_27", (D7A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D8AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_28", (D8A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D9AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_29", (D9A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D10AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_30", (D10A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD1AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_31", (OD1A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD2AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_32", (OD2A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD3AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_33", (OD3A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD4AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_34", (OD4A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD5AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_35", (OD5A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD6AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_36", (OD6A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD7AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_37", (OD7A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD8AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_38", (OD8A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD9AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_39", (OD9A.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD10AFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_40", (OD10A.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void D1BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_41", (D1B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D2BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_42", (D2B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D3BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_43", (D3B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D4BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_44", (D4B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D5BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_45", (D5B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D6BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_46", (D6B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D7BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_47", (D7B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D8BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_48", (D8B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D9BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_49", (D9B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D10BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_50", (D10B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD1BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_51", (OD1B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD2BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_52", (OD2B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD3BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_53", (OD3B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD4BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_54", (OD4B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD5BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_55", (OD5B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD6BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_56", (OD6B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD7BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_57", (OD7B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD8BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_58", (OD8B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD9BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_59", (OD9B.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD10BFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_60", (OD10B.SelectedIndex + 1).ToString(), CurrentId);
        }

        private void D1CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_61", (D1C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D2CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_62", (D2C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D3CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_63", (D3C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D4CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_64", (D4C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D5CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_65", (D5C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D6CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_66", (D6C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D7CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_67", (D7C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D8CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_68", (D8C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D9CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_69", (D9C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void D10CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_70", (D10C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD1CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_71", (OD1C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD2CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_72", (OD2C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD3CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_73", (OD3C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD4CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_74", (OD4C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD5CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_75", (OD5C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD6CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_76", (OD6C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD7CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_77", (OD7C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD8CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_78", (OD8C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD9CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_79", (OD9C.SelectedIndex + 1).ToString(), CurrentId);
        }
        private void OD10CFunction(object sender, EventArgs e)
        {
            Save_Settings("duration_80", (OD10C.SelectedIndex + 1).ToString(), CurrentId);
        }





        public List<string> DurationAmount(int x)
        {
            List<string> list = new List<string>();
            if (x == 4)
            {
                list.Add(Properties.Resources.Time1);
                list.Add(Properties.Resources.Time2);
                list.Add(Properties.Resources.Time3);
                list.Add(Properties.Resources.Time4);
                list.Add(Properties.Resources.Time5);
                list.Add(Properties.Resources.Time6);
                list.Add(Properties.Resources.Time7);
                list.Add(Properties.Resources.Time8);
                return list;
            }
            if (x == 2)
            {
                list.Add(Properties.Resources.Time1);
                list.Add(Properties.Resources.Time2);
                list.Add(Properties.Resources.Time3);
                list.Add(Properties.Resources.Time4);
                list.Add(Properties.Resources.Time5);
                list.Add(Properties.Resources.Time6);
                list.Add(Properties.Resources.Time7);
                list.Add(Properties.Resources.Time8);
                list.Add(Properties.Resources.Time9);
                list.Add(Properties.Resources.Time10);
                list.Add(Properties.Resources.Time11);
                list.Add(Properties.Resources.Time12);
                list.Add(Properties.Resources.Time13);
                list.Add(Properties.Resources.Time14);
                list.Add(Properties.Resources.Time15);
                list.Add(Properties.Resources.Time16);
                return list;
            }
            if (x == 1)
            {
                list.Add(Properties.Resources.Time1);
                list.Add(Properties.Resources.Time2);
                list.Add(Properties.Resources.Time3);
                list.Add(Properties.Resources.Time4);
                list.Add(Properties.Resources.Time5);
                list.Add(Properties.Resources.Time6);
                list.Add(Properties.Resources.Time7);
                list.Add(Properties.Resources.Time8);
                list.Add(Properties.Resources.Time9);
                list.Add(Properties.Resources.Time10);
                list.Add(Properties.Resources.Time11);
                list.Add(Properties.Resources.Time12);
                list.Add(Properties.Resources.Time13);
                list.Add(Properties.Resources.Time14);
                list.Add(Properties.Resources.Time15);
                list.Add(Properties.Resources.Time16);
                list.Add(Properties.Resources.Time17);
                list.Add(Properties.Resources.Time18);
                list.Add(Properties.Resources.Time19);
                list.Add(Properties.Resources.Time20);
                list.Add(Properties.Resources.Time21);
                list.Add(Properties.Resources.Time22);
                list.Add(Properties.Resources.Time23);
                list.Add(Properties.Resources.Time24);
                list.Add(Properties.Resources.Time25);
                list.Add(Properties.Resources.Time26);
                list.Add(Properties.Resources.Time27);
                list.Add(Properties.Resources.Time28);
                list.Add(Properties.Resources.Time29);
                list.Add(Properties.Resources.Time30);
                list.Add(Properties.Resources.Time31);
                list.Add(Properties.Resources.Time32);
                return list;
            }
            else { return list; }
        }

        public int FrequencyToInt(string x)
        {
            
            if (x == Properties.Resources.GutFreq1)
            {
                return 4;
            }
            if (x == Properties.Resources.GutFreq2)
            {
                return 2;
            }
            if (x == Properties.Resources.GutFreq3)
            {
                return 1;
            }
            else
            {
                return 0;
            }

        }

        public List<string> FrequencyIntToString (int x)
        {
            List<string> list = new List<string>();

            if (x == 4)
            {
                list.Add(Properties.Resources.GutQuestionFreq1);
                list.Add(Properties.Resources.GutQuestionFreq2);
                list.Add(Properties.Resources.GutQuestionFreq3);
                list.Add(Properties.Resources.GutQuestionFreq4);
                return list;
            }
            if (x == 2)
            {
                list.Add(Properties.Resources.GutQuestionFreq5);
                list.Add(Properties.Resources.GutQuestionFreq6);
                return list;
            }
            if (x == 1)
            {
                list.Add(Properties.Resources.GutQuestionFreq7);
                return list;
            }
            else
            {
                return list;
            }
        }

        protected bool SetProperty<T>(ref T backingStore, T value,
            [CallerMemberName] string propertyName = "",
            Action onChanged = null)
        {
            if (EqualityComparer<T>.Default.Equals(backingStore, value))
                return false;

            backingStore = value;
            onChanged?.Invoke();
            OnPropertyChanged(propertyName);
            return true;
        }



        public string Text
        {
            get
            {
                return text;
            }

            set
            {
                SetProperty(ref text, value);
            }
        }
        public int Length
        {
            get => length;
            set => SetProperty(ref length, value);
        }

        public string Frequency
        {
            get => frequency;
            set => SetProperty(ref frequency, value);
        }

        public string[] Symptoms
        {
            get => symptoms;
            set => SetProperty(ref symptoms, value);
        }

        public string[] OtherSymptoms
        {
            get => othersymptoms;
            set => SetProperty(ref othersymptoms, value);
        }

        public string[] SleepSymptoms
        {
            get => sleepsymptoms;
            set => SetProperty(ref sleepsymptoms, value);
        }
        public string Description
        {
            get => description;
            set => SetProperty(ref description, value);
        }

        public string ItemId
        {
            get
            {
                return itemId;
            }
            set
            {
                itemId = value;
                LoadItemId(value);
            }
        }


        public async void LoadItemId(string itemId)
        {
            try
            {
                var item = await DependencyService.Get<IDataStore<Item>>().GetItemAsync(itemId);
                Id = item.Id;
                Text = item.Text;
                Description = item.Description;
                Frequency = item.Frequency;
                Length = item.Length;
                Symptoms = item.Symptoms;
                OtherSymptoms = item.OtherSymptoms;
                SleepSymptoms = item.SleepSymptoms;
                CurrentItem = item;
            }
            catch (Exception)
            {
                Debug.WriteLine("Failed to Load Item");
            }
        }
    }
}



